Python Forum

Full Version: pip & pip3 question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
General question about pip/pip3

Just want to know if pip3 should show up in the Python3 shell when you check for version?
When I go into Python3 in the terminal and check for the version of pip3 to see if its there:
>>>pip3 --version

it doesn't show up. but it does when im in the Python 2.7 shell in the terminal on my Mac.
Just want to make sure if this is how it is supposed to be set up/works? And if I want to install packages to use in python3...... i have to do it from the 2.7 shell in the terminal using pip3? Doesn't seem to be right but if that's the way it is would like to know?
Or is there just one version of pip and the 3 just sends those packages to version 3 of Python.....Appreciate any help.!

nothing shows up for a version check of pip under version 2.7
only pip3


$ pip --version
-bash: pip: command not found
$ pip3 --version
pip 18.1 from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7)

thats from the terminal Python 2.7 on my Mac

I let the Python 3.7.2 installer do its thing when installed everything today.
For Mac look at Doing it Right.

(Mar-05-2019, 09:03 PM)CosmicCliff Wrote: [ -> ]Or is there just one version of pip and the 3 just sends those packages to version 3 of Python.....Appreciate any help.!
If you pip3 --version show your output it will only install to Python 3.7.
If type python3 should start Python 3.7.

If you follow link with Homebrew.
Then will python and pip both point to Python 3.
Quote:python will launch the Homebrew-installed Python 3 interpreter.
Homebrew version of Python 3 is installed then pip will point to Python 3.

Alternative my tutorial about pyenv Simple Python Version Management ,pyenv also work on Mac.