Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pip & pip3 question
#1
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.
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pip3 problem with py3exiv2 jcezanna56 0 1,489 May-28-2020, 08:55 AM
Last Post: jcezanna56
  pip or pip3 - which should it be? Skaperen 0 1,959 Aug-07-2019, 12:55 AM
Last Post: Skaperen
  pip vs pip3 Skaperen 16 14,736 Aug-26-2018, 03:15 AM
Last Post: Skaperen
  pip3 under Mac sgbotsford 1 2,415 Apr-06-2018, 05:16 AM
Last Post: snippsat
  Install Python3 & PIP3 & Django on MAC OSX topjaba 1 3,569 Dec-24-2017, 08:18 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020