简体   繁体   English

Python Scikit-image使用Pip安装失败

[英]Python Scikit-image Install Failing Using Pip

I'm attempting to install scikit-image and am obtaining this error output message. 我正在尝试安装scikit-image并获取此错误输出消息。 I'm unsure how to actually display the text properly, so just a simple paste I have done. 我不确定如何正确地显示文本,所以我只做了一个简单的粘贴。

building 'skimage.external.tifffile._tifffile' extension
    compiling C sources
    creating build\temp.win32-2.7\Release\skimage\external
    creating build\temp.win32-2.7\Release\skimage\external\tifffile
    C:\Users\Kyle\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG /arch:SSE2 -Ic:\python27\lib\site-packages\numpy\core\include -Ic:\python27\lib\site-packages\numpy\core\include -Ic:\python27\include -Ic:\python27\PC /Tcskimage\external\tifffile\tifffile.c /Fobuild\temp.win32-2.7\Release\skimage\external\tifffile\tifffile.obj
    tifffile.c
    skimage\external\tifffile\tifffile.c(75) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
    error: Command "C:\Users\Kyle\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG /arch:SSE2 -Ic:\python27\lib\site-packages\numpy\core\include -Ic:\python27\lib\site-packages\numpy\core\include -Ic:\python27\include -Ic:\python27\PC /Tcskimage\external\tifffile\tifffile.c /Fobuild\temp.win32-2.7\Release\skimage\external\tifffile\tifffile.obj" failed with exit status 2

Issue was stdint.h was not installed with the VS Python setup. 问题是stdint.h没有安装VS Python设置。

To solve this, visit https://raw.githubusercontent.com/mattn/gntp-send/master/include/msinttypes/stdint.h 要解决此问题,请访问https://raw.githubusercontent.com/mattn/gntp-send/master/include/msinttypes/stdint.h

Copy and paste the text into a notepad document/text editor and save it to C:\\Users\\Kyle\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\include\\ 将文本复制并粘贴到记事本文档/文本编辑器中,并将其保存到C:\\ Users \\ Kyle \\ AppData \\ Local \\ Programs \\ Common \\ Microsoft \\ Visual C ++ for Python \\ 9.0 \\ VC \\ include \\

Save it as stdint.h 将其保存为stdint.h

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM