Python安装scikit-image报错Cannot open include file: 'stdint.h': No such file or directory

问题:

Python安装scikit-image报错skimage\external\tifffile\tifffile.c(75) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory

问题原因:

stdint.h是c99标准的头文件,默认安装无此文件,编译时对此文件有依赖,因此需要单独下载。

解决办法:

1.下载msinttypes-r26.zip:http://download.csdn.net/download/cfying/9408854

2.解压后会得到三个文件,把inttypes.h和stdint.h放到vc的include目录即可。具体目录可根据报错信息得到。

C:\Users\admin\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\include)。

3.重新安装成功


猜你喜欢

转载自blog.csdn.net/HJULKK/article/details/79372196