我正在尝试通过pip安装scikit-image,这导致我的pip(8.1)输出:
Complete output from command python setup.py egg_info:
Beginning with Matplotlib 3.1, Python 3.6 or above is required.
This may be due to an out of date pip.
Make sure you have pip >= 9.0.1.
所以,我运行pip3 install --upgrade pip
然后我尝试运行pip3 install --upgrade scikit-image
结果为:
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip import main
ImportError: cannot import name 'main'
我尝试回退:
sudo python3 -m pip uninstall pip && sudo apt install python3-pip --reinstall
并运行:
sudo apt install python3-pip
这将导致安装pip v8.1.1
pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5)
如果我尝试pip3 install scikit-image
,则会再次导致最上面的错误消息-指出我需要pip> = 9.0.1。
是否可以使用python3.5获得scikit图像?