Ubuntu18.04 升级python3后 安装pip3 后报错

pip3 -V
Traceback (most recent call last): File "/usr/local/bin/pip3", line 7, in <module> from pip._internal import main ModuleNotFoundError: No module named 'pip._internal'

于是我们换个方式重新安装pip3

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

在验证一下

pip3 -V
pip 10.0.1 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)

 

posted @ 2018-06-01 11:09  WhoAmMe  阅读(4084)  评论(0编辑  收藏  举报