0

Question in title. How do I figure out (using terminal) which version of python pip is installing to (Ex. Python 2.7 or Python 3.6). I am looking to use Terminal on MacOS.

2
  • 3
    Just check pip's version and it should say which Python it's for. But usually pip means Python2 and pip3 means Python3 Commented Feb 18, 2020 at 15:23
  • Are you trying to get the version of Python or pip?? It's unclear from the question. Commented Feb 18, 2020 at 15:25

4 Answers 4

1

Try the Pip --version command to verify the pip version.

$ pip --version

if you want to know the version of any library installed, try:

$ pip list

if you want to know the python version, just simply run in the command line:

$ python -v
Sign up to request clarification or add additional context in comments.

Comments

1

Use

pip -V

which will tell you the PIP version and the python version. If you'd like to decide which python version to install to:

$ pip2.6 install otherpackage
$ pip2.7 install mybarpackage

Comments

0

This is easily Google-able, but to save you a few seconds:

python --version

Comments

0

Use this command to find out which version of pip is installed:

pip list | grep pip

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.