无法打开包含文件:"io.h":没有这样的文件或目录,Python 3.7.5,Windows 8.1,VS v 2019



当我收到下面的错误时,我正试图从pip-install安装Isotree包。我使用的是Python 3.7,在Windows 8上使用Visual studio构建工具2019(版本16.7.5(安装的C++构建工具。我还包括Windows 10 SDK(10.0.18362.0(和其他插件。

我已经尝试了我在这个网站和其他谷歌搜索中发现的类似问题的所有可能的解决方案,但我似乎无法让它发挥作用。由于我使用的是一台工作笔记本电脑,我无法四处下载。

有人能帮我解决这个问题吗?我尝试设置一个环境变量INCLUDE,指向文件夹[C:\Program Files(x86(\Windows Kits\10\INCLUDE\10.0.183620\ucrt]这有所帮助,但又出现了另一个错误;无法打开include:basetsd.h";然后试图解决这个问题,原来的错误(io.h(又出现了。

Building wheel for isotree (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:usersa481838appdatalocalprogramspythonpython37python.exe'
'c:usersa481838appdatalocalprogramspythonpython37libsite-packagespip
_vendorpep517_in_process.py' build_wheel 'C:UsersA481838AppDataLocalTemp
tmpslnm97j9'
cwd: C:UsersA481838AppDataLocalTemppip-install-uxt3l0k4isotree
Complete output (28 lines):
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.7
creating buildlib.win-amd64-3.7isotree
copying isotree__init__.py -> buildlib.win-amd64-3.7isotree
running build_ext
cythoning isotree/cpp_interface.pyx to isotreecpp_interface.cpp
building 'isotree._cpp_interface' extension
creating buildtemp.win-amd64-3.7
creating buildtemp.win-amd64-3.7Release
creating buildtemp.win-amd64-3.7Releaseisotree
creating buildtemp.win-amd64-3.7Releasesrc
C:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC1
4.27.29110binHostX86x64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -D_USE_MER
SENNE_TWISTER -D_ENABLE_CEREAL -IC:UsersA481838AppDataLocalTemppip-build-e
nv-7aj7e0rhoverlayLibsite-packagesnumpycoreinclude -I. -I./src -IC:Users
A481838AppDataLocalTemppip-build-env-7aj7e0rhoverlayinclude -Ic:usersa48
1838appdatalocalprogramspythonpython37include -Ic:usersa481838appdatal
ocalprogramspythonpython37include "-IC:Program Files (x86)Microsoft Visual
Studio2019BuildToolsVCToolsMSVC14.27.29110include" "-IC:Program Files (
x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.27.29110include"
"-IC:Program Files (x86)Windows Kits10Include10.0.18362.0ucrt" /EHsc /Tpis
otreecpp_interface.cpp /Fobuildtemp.win-amd64-3.7Releaseisotreecpp_interfac
e.obj /openmp /O2 /std:c++14
cpp_interface.cpp
c:usersa481838appdatalocalprogramspythonpython37includepyconfig.h(59)
: fatal error C1083: Cannot open include file: 'io.h': No such file or directory
c:usersa481838appdatalocalprogramspythonpython37libdistutilsextensio
n.py:131: UserWarning: Unknown Extension options: 'install_requires'
warnings.warn(msg)
C:UsersA481838AppDataLocalTemppip-build-env-7aj7e0rhoverlayLibsite-pa
ckagesCythonCompilerMain.py:369: FutureWarning: Cython directive 'language_le
vel' not set, using 2 for now (Py2). This will change in a later release! File:
C:UsersA481838AppDataLocalTemppip-install-uxt3l0k4isotreeisotreecpp_int
erface.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
warning: isotreecpp_interface.pyx:384:44: Not all members given for struct 'I
soForest'
warning: isotreecpp_interface.pyx:384:44: Not all members given for struct 'I
soForest'
warning: isotreecpp_interface.pyx:387:47: Not all members given for struct 'E
xtIsoForest'
warning: isotreecpp_interface.pyx:387:47: Not all members given for struct 'E
xtIsoForest'
warning: isotreecpp_interface.pyx:391:34: Not all members given for struct 'I
mputer'
warning: isotreecpp_interface.pyx:391:34: Not all members given for struct 'I
mputer'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildT
ools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe' failed with exit
status 2
----------------------------------------
ERROR: Failed building wheel for isotree
Failed to build isotree
ERROR: Could not build wheels for isotree which use PEP 517 and cannot be instal
led directly``` 

键入以下内容。

pip install pipwin
pipwin install pycuda

最新更新