pip install scikit-image 出错

Error with pip install scikit-image

我正在使用 Windows 8.1 64 位和 Python 2.7。尝试从 shell

安装 scikit-image

pip install 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\

下载正常,但安装失败。 这里有什么问题,如何解决?

编辑

使用

升级我的 pip 后

python -m pip install -U pip setuptools

再试一次,我得到:

Command "python setup.py egg_info" failed with error code 1 in c:\users\france~1\appdata\local\temp\pip-build-nbemct\scikit-image\

怎么了?

先安装numpy

pip install numpy

如果您遇到 numpy 的安装问题,请从 http://www.lfd.uci.edu/~gohlke/pythonlibs/ 为您的 python 版本获取预构建的 windows 安装程序(python 版本不同于 windows版本)。

numpy 32-bit: numpy-1.11.1+mkl-cp27-cp27m-win32.whl

numpy 64-bit: numpy-1.11.1+mkl-cp27-cp27m-win_amd64.whl

需要 Microsoft Visual C++ 9.0。如果你需要VC++ 9.0,那么请从这个link获取:Microsoft VC++ 9.0 download

然后安装

pip install scikit-image

它会在安装 scikit-image 之前安装下面的列表

pyparsing、六、python-dateutil、pytz、cycler、matplotlib、scipy、decorator、networkx、pillow、toolz、dask

如果 scipy 安装失败,请按照以下步骤操作: 从 http://www.lfd.uci.edu/~gohlke/pythonlibs/ 为您的 python 版本获取预构建的 windows 安装程序(python 版本与 windows 版本不同)。

Scipy 32-bit: scipy-0.18.0-cp27-cp27m-win32.whl

Scipy 64-bit: scipy-0.18.0-cp27-cp27m-win_amd64.whl

如果显示 whl is not supported wheel on this platform 失败,则使用 python -m pip install --upgrade pip 升级 pip 并尝试安装 scipy

现在试试

pip install scikit-image

它应该很有魅力。

先升级pip

pip install --upgrade pip

安装 numpy

pip install numpy

安装scipy

pip install scipy

从 link

下载版本 14 或更高版本的 C++ 构建工具

Microsoft visual code C++ build tools