python2 is installed on every mac and I installed python3 and used it a lot with the standard libraries. Now I wanted to use pip3 as I did with pip and it says:
-bash: pip3: command not found
I downloaded get-pip.py
found in StackOverflow's answers and with installing it I got:
Requirement already up-to-date: pip in /usr/local/lib/python3.6/site-packages
In addition to that I tested with which pip3
and there was no output, just the new line with the normal shell. And with which pip
there is the location output like I expected:
/usr/local/bin/pip
I installed python3 with the package and last month I installed brew
. Maybe this created the conflict because I think I had use pip3
for some libraries my installation of python3.
(What possibility do I have to use python3 without having to uninstall python2 and python3 because I need both of them and got the answer that it's no problem to install both of them?)
Thanks @phd for linking to another question. With
alias pip3='python3 -m pip'
in ~/.bash_profile
I can use pip3 as used.
But I do want to know if there is still a place where pip3 is located in python3 and how I can find it?
Thanks a lot.
- macOS 10.12.6 / python 2.7.10 and 3.6.4
which python
>>/usr/bin/python
which python3
>>/usr/local/bin/python3