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'

因而咱們換個方式從新安裝pip3python

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

在驗證一下bootstrap

pip3 -V
pip 10.0.1 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)
相關文章
相關標籤/搜索