0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示

pip安裝時 fatal error C1083 無法打開包括文件 “io.h” No such file or directory

jf_96884364 ? 來源:代碼的路 ? 作者:代碼的路 ? 2023-01-12 11:24 ? 次閱讀

原文鏈接

報錯

使用pip安裝模塊,出現(xiàn)錯誤:

c:\\users\\anaconda3\\include\\pyconfig.h(68): fatal error C1083: 無法打開包括文件: “io.h”: No such file or directory

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

Command "C:\\Users\\Anaconda3\\python.exe -u -c "import setuptools, tokenize; file ='C:\\Users\\AppData\\Local\\Temp\\pip-build-4u1qzu

cg\\lmdb\\setup.py';exec(compile(getattr(tokenize, 'open', open)( file ).read().replace('\\r\\n', '\\n'), file , 'exec'))" install --record C:

\\Users\\AppData\\Local\\Temp\\pip-bcivjbyw-record\\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in

C:\\Users\\AppData\\Local\\Temp\\pip-build-4u1qzucg\\lmdb\\

原因:無法找到io.h文件。

解決辦法

首先安裝Windows 10 SDK

SDK下載地址:https://developer.microsoft.com/zh-cn/windows/downloads/windows-10-sdk

默認安裝即可。

然后配置路徑:右鍵我的電腦——屬性——高級系統(tǒng)設置——環(huán)境變量——系統(tǒng)變量(s),在PATH中添加:

C:\\Program Files (x86)\\Windows Kits\\10\\Include\\\\ucrt

即可解決該問題。

學習更多編程知識,請關注我的公眾號:

[代碼的路]

聲明:本文內容及配圖由入駐作者撰寫或者入駐合作網站授權轉載。文章觀點僅代表作者本人,不代表電子發(fā)燒友網立場。文章及其配圖僅供工程師學習之用,如有內容侵權或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報投訴
  • 編程
    +關注

    關注

    88

    文章

    3521

    瀏覽量

    93276
  • python
    +關注

    關注

    53

    文章

    4753

    瀏覽量

    84081
收藏 人收藏

    評論

    相關推薦

    workbench生成代碼出現(xiàn)fatal error stm32cubemx5.2.0.analyticsserver.xml:1:1:premature end of file什么原因?

    st workbench生成代碼出現(xiàn)fatal error stm32cubemx5.2.0.analyticsserver.xml:1:1:premature end of file什么原因
    發(fā)表于 07-03 08:14

    esp32s3芯片在esp-idf上編譯報錯,無法導入內置庫是什么原因呢?

    C:/Users/cheng/workspace/blu-test/components/ble_user/ble_user.c:16:10: fatal error: esp_wif
    發(fā)表于 06-27 07:05

    安裝cryptography文件時,其依賴程序cffi安裝失敗,為什么?

    -c \'import setuptools, tokenize;__file__=\'\"\'\"\'/tmp/pip-install-hwG5QJ/cffi/setup.py
    發(fā)表于 06-26 06:38

    esp32在.h文件中添加部分頭文件時,編譯通不過,為什么?

    添加仍然是報錯的: ../components/Robert_BLE/include/Robert_handle.h:4:10: fatal error: nvs_flash.h
    發(fā)表于 06-20 08:12

    esp32c3在別的.c文件用微妙函數(shù)ets_delay_us(20)函數(shù)報錯怎么解決?

    =implicit-function-declaration] ets_delay_us(DELAY_us); 我添加頭文件也報錯,../main/motor.c:4:10: fatal er
    發(fā)表于 06-20 07:46

    IDF.PY編譯時提示找不到iostream怎么解決?

    ../main/main.c:29:../main/rt/RTNeural/Model.h:6:10: fatal error: iostream: No such
    發(fā)表于 06-19 06:36

    在模版工程中新建了一個目錄components,在這個目錄中新建了.c和.h文件文件中有包含idf的庫文件,為什么找不到?

    內容如下:fatal error: drivermcpwm_prelude.h: No such file or directory 7
    發(fā)表于 06-06 07:43

    無法將blob文件下載到evb,為什么?

    **************************************************** ** ERROR: WLAN: could not download clm_blob file ** FATAL
    發(fā)表于 05-27 08:17

    使用STM32H743添加rtthread nano pack包會少board.h文件如何解決?

    (14): error:#5: cannot open source input file \"board.h\": No such file or
    發(fā)表于 03-22 07:50

    CubeIDE添加自己的.c和.h文件就報錯的原因?

    : sch51.h: No such file or directory 2.make: *** [Core/Src/subdir.mk:34: Core/Src/main.o] Error
    發(fā)表于 03-21 06:04

    STM32H7的工程出現(xiàn)找不到rtconfig.h的錯誤如何解決?

    : fatal error: rtconfig.h: No such file or directory 20 | #include |
    發(fā)表于 03-05 07:12

    在Linux中運行QT項目報 error: GLES2/gl2.h: No such file or directory這個錯誤

    在Linux中安裝的QT5.7.0中運行QT項目,結果報 error: GLES2/gl2.h: No such file or directory
    發(fā)表于 02-23 09:25

    SE7上編譯BM1684x的example時,報錯“bfatal error: bmruntime_interface.h: No such file or directory”怎么解決?

    /bm168x_examples/inference/bmutility/bmutility_types.h:43:10: fatal error: opencv2/opencv.hpp: No such
    發(fā)表于 01-10 07:35

    linuxvi無法打開并寫入文件

    在Linux系統(tǒng)中,Vi是一種文本編輯器,它可以用來創(chuàng)建和編輯文件。如果你遇到了無法打開并寫入文件的問題,可能是由于以下幾個原因: 權限問題:請確保你對所需操作的
    的頭像 發(fā)表于 11-28 15:10 ?2576次閱讀

    keil軟件報錯,添加的.h文件找不到其相對路徑

    ..\\\\User\\\\LED\\\\bsd_led.c(2): error:#5: cannot open source input file \"./led1/bsp_led.h
    發(fā)表于 10-14 14:56