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

Popular posts from this blog

How to fix Android when developer options are not available for this user

Exception: Could not find a default OpenFlow controller in Mininet

v4l2: open /dev/video0: Permission denied