Ubuntu下更新pip出现from pip import main ImportError: cannot import name main

版权声明:本文为博主原创文章,转载请注明出处:https://blog.csdn.net/qq_31261509 https://blog.csdn.net/qq_31261509/article/details/84147477

The Ubuntu’s python-pip-9.0.1 installed(via apt get python-pip) is conflicting with Latest pip-18.0 provided by pypa. So sudo rm -rf ~/.local/lib/python2.7/site-packages/(Beware!) removes the ubuntu’s python-pip and resolves the problem. Only one pip can exist on the system

更行Pip后出现
Traceback (most recent call last):
File “/usr/bin/pip”, line 9, in
from pip import main
ImportError: cannot import name main

通过下面命令解决

sudo rm -rf ~/.local/lib/python2.7/site-packages/

猜你喜欢

转载自blog.csdn.net/qq_31261509/article/details/84147477