ImportError: cannot import name 'main'
This is a common issue with pip3 when you try to install some package:
sudo pip3 install something
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip import main
ImportError: cannot import name 'main'
To fix it just execute the following sentence:
sudo python3 -m pip uninstall pip && sudo apt install python3-pip --reinstall
Enjoy it!
Comments
Post a Comment