ImportError: cannot import name 'main'错误解決办法!

一、使用pip出现:
Traceback (most recent call last):
File “/usr/bin/pip3”, line 9, in
from pip import main

ImportError: cannot import name ‘main’

二、解决方法:输入以下命令重新安装pip。


sudo python3 -m pip uninstall pip && sudo apt install python3-pip --reinstall

转载至:https://blog.csdn.net/chenzhenchou/article/details/80161485

猜你喜欢

转载自blog.csdn.net/qq_37760750/article/details/80409967
今日推荐