Python pip install scikit-image 出错
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38608698/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error with pip install scikit-image
提问by FaCoffee
I am using Windows 8.1 64 bit and Python 2.7. While trying to install scikit-image
from the shell
我使用的是 Windows 8.1 64 位和 Python 2.7。尝试scikit-image
从 shell安装时
pip install scikit-image
pip install scikit-image
I have encountered this error:
我遇到了这个错误:
Command "python setup.py egg_info" failed with error code 1 in c:\users\france~1\appdata\local\temp\pip-buildtksnfe\scikit-image\
Command "python setup.py egg_info" failed with error code 1 in c:\users\france~1\appdata\local\temp\pip-buildtksnfe\scikit-image\
The download is fine but the installation fails. What is the problem here and how to solve it?
下载没问题,但安装失败。这里有什么问题以及如何解决?
EDIT
编辑
After upgrading my pip with
升级我的 pip 后
python -m pip install -U pip setuptools
python -m pip install -U pip setuptools
and trying again, I got:
再试一次,我得到:
Command "python setup.py egg_info" failed with error code 1 in c:\users\france~1\appdata\local\temp\pip-build-nbemct\scikit-image\
Command "python setup.py egg_info" failed with error code 1 in c:\users\france~1\appdata\local\temp\pip-build-nbemct\scikit-image\
What is wrong?
怎么了?
回答by be_good_do_good
install numpy first
首先安装numpy
pip install numpy
If you face installation issues for numpy, get the pre-built windows installers from http://www.lfd.uci.edu/~gohlke/pythonlibs/for your python version (python version is different from windows version).
如果您遇到 numpy 的安装问题,请从http://www.lfd.uci.edu/~gohlke/pythonlibs/获取适用于您的 Python 版本(python 版本与 Windows 版本不同)的预构建 Windows 安装程序。
numpy 32-bit: numpy-1.11.1+mkl-cp27-cp27m-win32.whl
numpy 32 位:numpy-1.11.1+mkl-cp27-cp27m-win32.whl
numpy 64-bit: numpy-1.11.1+mkl-cp27-cp27m-win_amd64.whl
numpy 64 位:numpy-1.11.1+mkl-cp27-cp27m-win_amd64.whl
Later you require VC++ 9.0, then please get it from below link Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
稍后您需要 VC++ 9.0,然后请从以下链接获取 Microsoft Visual C++ 9.0 是必需的。从http://aka.ms/vcpython27获取它
Then install
然后安装
pip install scikit-image
It will install below list before installing scikit-image
它将在安装 scikit-image 之前安装以下列表
pyparsing, six, python-dateutil, pytz, cycler, matplotlib, scipy, decorator, networkx, pillow, toolz, dask
pyparsing,六,python-dateutil,pytz,循环器,matplotlib,scipy,装饰器,networkx,枕头,toolz,dask
If it fails at installation of scipy, follow below steps: get the pre-built windows installers from http://www.lfd.uci.edu/~gohlke/pythonlibs/for your python version (python version is different from windows version).
如果安装 scipy 失败,请按照以下步骤操作:从http://www.lfd.uci.edu/~gohlke/pythonlibs/获取适用于您的 Python 版本的预构建 Windows 安装程序(python 版本与 Windows 版本不同) .
Scipy 32-bit: scipy-0.18.0-cp27-cp27m-win32.whl
Scipy 32 位:scipy-0.18.0-cp27-cp27m-win32.whl
Scipy 64-bit: scipy-0.18.0-cp27-cp27m-win_amd64.whl
Scipy 64 位:scipy-0.18.0-cp27-cp27m-win_amd64.whl
If it fails saying whl is not supported wheel on this platform, then upgrade pip using python -m pip install --upgrade pipand try installing scipy
如果在此平台上显示不支持 whl失败,请使用python -m pip install--upgrade pip升级pip并尝试安装 scipy
Now try
现在试试
pip install scikit-image
It should work like a charm.
它应该像魅力一样工作。