我正在尝试为Python 3.9.2(32位)安装pyodbc,但是我一直收到以下错误消息:
C:\Users\ICAPP02\AppData\Local\Temp\pip-install-0c78okb8\pyodbc_d782ffa5512448c49f83e214e7ec4434\src\pyodbc.h(19): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86\cl.exe' failed with exit code 2
我知道我缺少windows.h C++头文件,但我确实找不到它们,不知道该去哪里查找,也不知道缺少多少个或者长什么样子。
另外,当我找到它们时,我应该将它们放在错误中引用的文件夹中吗?:C:\Program Files (x86)\Microsoft VisualStudio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86\cl.exe
C:\Users\ICAPP02\AppData\Local\Temp\pip-install-0c78okb8\pyodbc_d782ffa5512448c49f83e214e7ec4434\src\pyodbc.h(19): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86\cl.exe' failed with exit code 2
我知道我缺少windows.h C++头文件,但我确实找不到它们,不知道该去哪里查找,也不知道缺少多少个或者长什么样子。
另外,当我找到它们时,我应该将它们放在错误中引用的文件夹中吗?:C:\Program Files (x86)\Microsoft VisualStudio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX86\x86\cl.exe
pip install pyodbc-4.0.30-cp39-cp39-win32.whl
命令进行安装。 - Gord Thompson