pip 10.0.0 BUG 解决方案Traceback (most recent call last): File "/usr/bin/pip3", line 9, in <module>
使用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())
参考文档: