python - pip install scikit-image 出错

标签 python installation pip scikit-image

我使用的是 Windows 8.1 64 位和 Python 2.7。尝试从 shell 安装 scikit-image

pip install scikit-image

我遇到了这个错误:

命令“python setup.py egg_info”在 c:\users\france~1\appdata\local\temp\pip-buildtksnfe\scikit-image\中失败,错误代码为 1

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

编辑

升级我的pip之后

python -m pip install -U pip setuptools

再试一次,我得到了:

命令“python setup.py egg_info”在 c:\users\france~1\appdata\local\temp\pip-build-nbemct\scikit-image\中失败,错误代码为 1

怎么了?

最佳答案

先安装numpy

pip install numpy

如果您遇到 numpy 的安装问题,请从 http://www.lfd.uci.edu/~gohlke/pythonlibs/ 获取预构建的 Windows 安装程序对于您的 python 版本(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,请从以下链接获取: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/ 获取预构建的 Windows 安装程序对于您的 python 版本(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

它应该像魅力一样工作。

关于python - pip install scikit-image 出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38608698/

相关文章:

python - 在 python 中使用组合对象

python - 如何在 Python 中查找 base64 编码图像的文件扩展名

wix - 此 Windows 安装程序包有问题。无法运行完成此安装所需的程序

python - pip 和 conda environment.yml : unsupported operand type(s) for +: 'NoneType' and 'list'

python - lambda调用查询(python)

python - 通过提取 DatetimeIndex 的时间而不使用 for 循环,在一个图上绘制每一天

r - 如何让 R 将您的工作目录识别为其工作目录?

c# - 构建一个可以使用多种配置多次安装相同包(到不同文件夹)的安装程序

python - 在 OSX 上更新 Python 和包

Python PIP 安装抛出 TypeError : unsupported operand type(s) for -=: 'Retry' and 'int'