Nomodulenamed pip._internal怎么解决

报错:

root@iZc3hwgbd4qbmwZ:~# pip install oss2
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip._internal import main
ImportError: No module named 'pip._internal'

 

解决方法:

重新安装pip

执行下面两条命令:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python2.7  get-pip.py --force-reinstall

 

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.5 get-pip.py --force-reinstall

 

http://www.cnblogs.com/heiao10duan/p/9399858.html

卸载python2.7   sudo apt-get remove python-pip

posted on 2019-07-18 15:01  慧命  阅读(535)  评论(0编辑  收藏  举报

导航