pip3崩溃:ModuleNotFoundError: No module named ‘pip._internal’

记一下linux 环境pip3崩溃了的解决办法

当你用pip3安装模块时可能会报错:

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'

解决办法(编辑/usr/local/bin/pip3文件):

sudo vim /usr/local/bin/pip3

将from pip._internal import main 改成 from pip import main

错误的pip3:

正确的pip3:

 

转载自:https://blog.csdn.net/u011648373/article/details/82557081

You may also like...