我正试图在我的Ubuntu上安装"skimage“软件包,以分析图像与scikit映像的结构相似性。但我总是会犯一个奇怪的错误。我已经尝试过用conda安装它,但它也没有成功。康达似乎只知道“科学形象”,但不知道“短篇小说”。所需的包,如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.
谢谢你的帮忙!
发布于 2020-12-17 17:01:39
最后,经过大量的尝试,我发现这与我正在使用的虚拟机有关。在我下载的VirtualBox预建Ubuntu映像中,安装路径似乎有问题。设置一个本地Ubuntu (没有VM)为我解决了这个问题。skimage库是空的,并且只指向sicikit映像库,并且通常是在安装scikit映像时安装的(由于VM而不能工作)。现在,在我的本地人ubuntu上,一切都按其应有的方式工作。
发布于 2020-11-05 19:08:52
您可以使用pip install -U scikit-image
或此pip install scikit-image
安装它。
发布于 2020-11-05 19:09:45
https://stackoverflow.com/questions/64702026
复制相似问题