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

How to install Matlab without GUI

Contiki 3.0 on XM1000