安装SciKit-Image Error 127

时间:2017-07-11 01:12:04

标签: python

您好我很长时间没有尝试安装SciKit-Image了。我已经安装了所有依赖项并升级了所有依赖项。任何建议将不胜感激。

当我尝试通过pip

进行安装时会发生什么
error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python\lib\site-packages\numpy\core\include -Ic:\python\include -Ic:\python\include /Tcskimage\_shared\geometry.c /Fobuild\temp.win32-3.6\Release\skimage\_shared\geometry.obj" failed with exit status 127



Command "c:\python\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\iankr\\AppData\\Local\\Temp\\pip-build-lba2niop\\scikit-image\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\iankr\AppData\Local\Temp\pip-k16oa42b-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\iankr\AppData\Local\Temp\pip-build-lba2niop\scikit-image\

以下是Easy Install发生的事情

error: Setup script exited with error: Command "cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python\lib\site-packages\numpy\core\include -Ic:\python\include -Ic:\python\include /Tcskimage\_shared\geometry.c /Fobuild\temp.win32-3.6\Release\skimage\_shared\geometry.obj" failed with exit status 127

1 个答案:

答案 0 :(得分:0)

您需要一个C编译器来存储该软件包的本机代码。您可以从Microsoft获得Python 2.7:

https://www.microsoft.com/en-us/download/details.aspx?id=44266

此处提供了其他Python版本的完整列表:

https://wiki.python.org/moin/WindowsCompilers