pip cannot import name 'main'

pip3

Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
ImportError: cannot import name 'main'

refer github to fix it with:
hash -d pip in bash
hash -r pip in dash
if above not works, try python3 -m pip over pip3 or even better /usr/bin/env python3 -m pip it is safer and allow to avoid this issue with pip10

猜你喜欢

转载自blog.csdn.net/xy707707/article/details/80793993