解决 ImportError: No module named _internal
参考:
解决 ImportError: No module named _internal
在运行 pip
时遇到如下错误:
Traceback (most recent call last):
File "/usr/local/bin/pip", line7, in <module>
from pip._internal import main
ImportError: No module named _internal
原因:后续又安装了pip
,导致版本冲突。
解决方法:
sudo apt remove python-pip
2018.9
To improve is to change, to be perfect is to change often.