重新安装的ubuntu 18.04系统上初次安装python3-pip
之后,执行升级命令,出现如下错误信息:
|
$ sudo apt-get install python3-pip $ sudo pip3 install --upgrade pip 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' |
解决方法为重新升级安装一次 pip,如下:
|
$ python3 -m pip install --upgrade pip |
参考链接
No module named 'pip._internal.cli.main'