I had a working setup where I'd type pip install some-library
and then I could import it into my projects. Then I decided to install miniconda which installed another version of python (3.8) that my system started defaulting to.
By running this command in terminal (I'm on a mac): alias python=/usr/local/bin/python3
I managed to revert so that when I type python [something]
, my system uses the python located there (not the newly created one).
It seems that it's not as straightforward to get pip to do the same though. pip install some-library
just installs stuff for the wrong python version.
How can one make pip install some-library
install some-library
to the python version located in /usr/local/bin/python3?