2017-07-01 280 views
4

我正在嘗試安裝scikit-image並獲取此錯誤輸出消息。我不確定如何正確顯示文本,因此只需簡單地粘貼一下即可。Python Scikit-image安裝失敗使用PIP

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 

回答

14

問題是stdint.h未安裝VS Python安裝程序。

爲了解決這個問題,請訪問https://raw.githubusercontent.com/mattn/gntp-send/master/include/msinttypes/stdint.h

複製文本粘貼到記事本文檔/文本編輯器,並將其保存到 C:\用戶\凱爾\應用程序數據\本地\程序\ COMMON \微軟\的Visual C++爲Python \ 9.0 \ VC \包括\

保存爲stdint.h

+1

這就是我所說的酷黑客;-)我 – polarise

+0

工程:) – LiberiFatali

+0

如果什麼路徑不存在? – Kasparov92