错误提示
Traceback (most recent call last):
File "/usr/local/bin/pip", line 6, in <module>
from pip._internal.main import main
ModuleNotFoundError: No module named 'pip._internal'
解决办法:
解决办法 1
修复
python -m ensurepip
python -m pip install --upgrade pip
解决办法 2
修复
sudo apt install --fix-missing python3-pip
解决办法 3
强制重新安装
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py --force-reinstall