繁体   English   中英

使用 pip3 安装 skimage 失败

[英]installing skimage with pip3 fails

我正在尝试在我的 Ubuntu VM 上 pip 安装包“skimage”,以使用 scikit-image 分析图像的结构相似性。 但我总是收到一个奇怪的错误。 我已经尝试用 conda 安装它,但也没有成功。 Conda 似乎只知道“scikit-image”而不是“skimage”。 numpy、matplotlib 等所需的软件包已经安装和升级。

我的输入:

pip3 install skimage

错误:

    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-k9rh2ebf/skimage/setup.py'"'"'; __file__='"'"'/tmp/pip-install-k9rh2ebf/skimage/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-k9rh2ebf/skimage/pip-egg-info
         cwd: /tmp/pip-install-k9rh2ebf/skimage/
    Complete output (3 lines):
    
    *** Please install the `scikit-image` package (instead of `skimage`) ***
    
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


谢谢你的帮助!

您可以使用pip install -U scikit-image或此pip install scikit-image安装它

查看文档为了安装它,您需要使用以下命令

pip install scikit-image

如果你想使用 skimage 这个词来安装它

sudo apt-get install python-skimage

最后,经过多次尝试,我发现这与我使用的虚拟机有关。 在我下载的 VirtualBox 预建 Ubuntu 映像中,安装路径似乎有问题。 设置本机 Ubuntu(没有 VM)为我解决了这个问题。 skimage 库是空的,仅指向 sicikit-image 库,并且通常与 scikit-image 的安装一起安装(由于 VM 无法正常工作)。 现在在我的本地 ubuntu 上一切正常。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM