当前位置: 首页 > 后端技术 > Python

致命错误C1083在pip安装过程中无法打开包含文件“io.h”,Nosuchfileordirectory

时间:2023-03-26 14:29:16 Python

原链接报错。使用pip安装模块,出现错误:c:\users\anaconda3\include\pyconfig.h(68):fatalerrorC1083:cannotopenincludefile:“io.h”:Nosuchfileordirectoryerror:command'C:\ProgramFiles(x86)\MicrosoftVisualStudio14.0\VC\BIN\x86_amd64\cl.exe'失败,退出状态为2Command"C:\Users\Anaconda3\python.exe-u-c"importsetuptools,tokenize;__file__='C:\Users\AppData\Local\Temp\pip-build-4u1qzucg\lmdb\setup.py';exec(compile(getattr(tokenize,'open',open)(__file__).read().replace('\r\n','\n'),__file__,'exec'))"install--recordC:\Users\AppData\Local\Temp\pip-bcivjbyw-record\install-record.txt--single-version-externally-managed--compile"在C:\Users\AppData\Local\Temp中失败,错误代码为1\pip-build-4u1qzucg\lmdb\原因:找不到io.h文件。解决方法先安装Windows10SDKSDK下载地址:https://developer.microsoft.c...默认安装即可。然后配置路径:右击我的电脑-属性-高级系统设置-环境变量-系统变量(s),在PATH中添加:C:\ProgramFiles(x86)\WindowsKits\10\Include\\ucrt可以解决这个问题。想了解更多编程知识,请关注我的公众号:代码之道