pip常见错误

pip 10.0.0 BUG 解决方案Traceback (most recent call last): File "/usr/bin/pip3", line 9, in

使用pip3 出现以下错误:

Traceback (most recent call last):
File “/usr/bin/pip3”, line 9, in
from pip import main

解决办法

修改 /usr/bin/pip 文件
from pip import main
if __name__ == '__main__':
    sys.exit(main())

改为:

from pip import __main__
if __name__ == '__main__':
    sys.exit(__main__._main())

参考文档:

https://blog.csdn.net/cow66/article/details/80069309

你可能感兴趣的:(pip常见错误)