I have macOS High Sierra and installed Python 3.6 a few days ago. Today I was installing a few packages using pip3, which worked great until I used:
pip3 install --upgrade pip --user
Now when I use pip3 install for any package, I get the following error:
Traceback (most recent call last):
File "/usr/bin/pip3", line 7, in <module>
from pip import main
ImportError: cannot import name 'main'
I can’t figure out how to get pip3 working again. I don’t have permissions to use sudo. What can I check for? Is there a way to undo whatever that command did?
EDIT The following line fixed pip for me:
python3 -m pip install --user pip==9.0.1