升级python版本后 一直提示以下错误:

root@iZwz98p61dhjsadfhjkarjhj5Z:~# pip -V Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in from pip._internal import main ModuleNotFoundError: No module named 'pip._internal'

解决办法

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