Windows 操作系统,在安装Python模块时报错: Cannot open include file: ‘stdint.h’: No such file or directory
完整报错信息如下:
C:\Users\xxxxxx\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /
Ox /MD /W3 /GS- /DNDEBUG -Itwofish-0.3 -IC:\Python\include -IC:\Python\PC /Tctwofish-0.3/twofish.c /Fobuild\temp.win-amd
64-2.7\Release\twofish-0.3/twofish.obj
twofish.c
c:\users\xxxxxx\appdata\local\temp\pip-install-s2dmee\twofish\twofish-0.3\twofish.h(13) : fatal error C1083: Canno
t open include file: 'stdint.h': No such file or directory
error: command 'C:\\Users\\xxxxxx\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bi
n\\amd64\\cl.exe' failed with exit status 2
解决方法:
下载 stdint.h ,拷贝到报错信息中的 “include”目录中,对应的完整路径为:
C:\Users\xxxxxx\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\include
文件夹