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

无法打开包含文件:';io.h';:没有这样的文件或目录,Python 3.7.5,Windows 8.1,VS v 2019,python,c++,windows,pip,Python,C++,Windows,Pip,当我收到下面的错误时,我正在尝试从pip安装安装Isotree包。我使用Python 3.7,使用VisualStudio构建工具2019(版本16.7.5)在Windows 8上安装了安装的C++构建工具。我还包括了Windows10SDK(10.0.18362.0)以及其他附加组件 我已经尝试了所有可能的解决方案,我在这个网站上找到了类似的问题,并通过其他谷歌搜索,但我似乎无法让它工作。因为我在工作笔记本电脑上工作,所以我不能四处走动,从另一方下载 有人能帮我解决这个问题吗?我尝试设置一个环

当我收到下面的错误时,我正在尝试从pip安装安装Isotree包。我使用Python 3.7,使用VisualStudio构建工具2019(版本16.7.5)在Windows 8上安装了安装的C++构建工具。我还包括了Windows10SDK(10.0.18362.0)以及其他附加组件

我已经尝试了所有可能的解决方案,我在这个网站上找到了类似的问题,并通过其他谷歌搜索,但我似乎无法让它工作。因为我在工作笔记本电脑上工作,所以我不能四处走动,从另一方下载

有人能帮我解决这个问题吗?我尝试设置一个环境变量INCLUDE,指向文件夹[C:\Program Files(x86)\Windows Kits\10\INCLUDE\10.0.18362.0\ucrt] 这有助于解决问题,但出现了另一个错误,“无法打开include:basetsd.h”,然后试图解决这个问题,返回了原始错误(io.h)

  Building wheel for isotree (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\a481838\appdata\local\programs\python\python37\python.exe'
 'c:\users\a481838\appdata\local\programs\python\python37\lib\site-packages\pip\
_vendor\pep517\_in_process.py' build_wheel 'C:\Users\A481838\AppData\Local\Temp\
tmpslnm97j9'
       cwd: C:\Users\A481838\AppData\Local\Temp\pip-install-uxt3l0k4\isotree
  Complete output (28 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\isotree
  copying isotree\__init__.py -> build\lib.win-amd64-3.7\isotree
  running build_ext
  cythoning isotree/cpp_interface.pyx to isotree\cpp_interface.cpp
  building 'isotree._cpp_interface' extension
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  creating build\temp.win-amd64-3.7\Release\isotree
  creating build\temp.win-amd64-3.7\Release\src
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\1
4.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -D_USE_MER
SENNE_TWISTER -D_ENABLE_CEREAL -IC:\Users\A481838\AppData\Local\Temp\pip-build-e
nv-7aj7e0rh\overlay\Lib\site-packages\numpy\core\include -I. -I./src -IC:\Users\
A481838\AppData\Local\Temp\pip-build-env-7aj7e0rh\overlay\include -Ic:\users\a48
1838\appdata\local\programs\python\python37\include -Ic:\users\a481838\appdata\l
ocal\programs\python\python37\include "-IC:\Program Files (x86)\Microsoft Visual
 Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (
x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include"
"-IC:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt" /EHsc /Tpis
otree\cpp_interface.cpp /Fobuild\temp.win-amd64-3.7\Release\isotree\cpp_interfac
e.obj /openmp /O2 /std:c++14
  cpp_interface.cpp
  c:\users\a481838\appdata\local\programs\python\python37\include\pyconfig.h(59)
: fatal error C1083: Cannot open include file: 'io.h': No such file or directory

  c:\users\a481838\appdata\local\programs\python\python37\lib\distutils\extensio
n.py:131: UserWarning: Unknown Extension options: 'install_requires'
    warnings.warn(msg)
  C:\Users\A481838\AppData\Local\Temp\pip-build-env-7aj7e0rh\overlay\Lib\site-pa
ckages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_le
vel' not set, using 2 for now (Py2). This will change in a later release! File:
C:\Users\A481838\AppData\Local\Temp\pip-install-uxt3l0k4\isotree\isotree\cpp_int
erface.pyx
    tree = Parsing.p_module(s, pxd, full_module_name)
  warning: isotree\cpp_interface.pyx:384:44: Not all members given for struct 'I
soForest'
  warning: isotree\cpp_interface.pyx:384:44: Not all members given for struct 'I
soForest'
  warning: isotree\cpp_interface.pyx:387:47: Not all members given for struct 'E
xtIsoForest'
  warning: isotree\cpp_interface.pyx:387:47: Not all members given for struct 'E
xtIsoForest'
  warning: isotree\cpp_interface.pyx:391:34: Not all members given for struct 'I
mputer'
  warning: isotree\cpp_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

谢谢你的回复。我检查了你发送的链接,运行了```pip安装控制盘,结果成功。不幸的是,之后仍然无法安装isotree,导致相同的错误消息。感谢您的回复。我运行了您提供的代码,但现在出现了一个新错误。一切都与上面提到的相同,但不是“无法打开include文件:io.h”,而是“致命错误C1083:无法打开include文件:'basetsd.h':没有这样的文件或目录”。如何解决此错误?查看第二个答案,希望它对您有所帮助。再次感谢您的快速回复。我已经试过那个解决办法,但没用。你还有别的想法吗?