当前位置:网站首页>pip install fatal error C1083 cannot open include file "io.h" No such file or directory

pip install fatal error C1083 cannot open include file "io.h" No such file or directory

2022-08-10 17:48:00 the way of code

Original link

Error

Using pip to install the module, an error occurred:

c:\users\anaconda3\include\pyconfig.h(68): fatal error C1083: cannot open include file: "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\

Reason: The io.h file could not be found.

Solution

Install the Windows 10 SDK first

SDK download address: https://developer.microsoft.com/zh-cn/windows/downloads/windows-10-sdk

It can be installed by default.

Then configure the path: right click on my computer - properties - advanced system settings - environment variables - system variable(s), add in PATH:

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

This problem can be solved.


Learn more programming knowledge, please pay attention to my public account:

The Way of the Code

原网站

版权声明
本文为[the way of code]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/222/202208101722216169.html