Pip and pip3 commands use the same brew installed version of pip

(Yunti) #1

As per the brew docs for python, pip and pip2 should use python 2 and pip3 python 3

I found I had global pip dependencies which were uneeded (I don’t really use python2) and removed them however these removed the ones listed with pip3

investingating with:
~/P/p/django_test ❯❯❯ pip --version
pip 19.0.3 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
~/P/p/django_test ❯❯❯ pip3 --version
pip 19.0.3 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
~/P/p/django_test ❯❯❯ python --version
Python 2.7.15
~/P/p/django_test ❯❯❯ python3 --version
Python 3.7.1
~/P/p/django_test ❯❯❯ python2 --version
Python 2.7.15
~/P/p/django_test ❯❯❯ brew list | grep python

it seems that I somehow have pip and pip3 using the same version of pip

Is this expected behaviour and just undocumented?

(Sean Molenaar) #2

what does which pip show you? And where does python3 come from? because that isn’t in homebrew-core.

(Yunti) #3

~/P/python ❯❯❯ which pip

~/P/python ❯❯❯ which python3