Pip installation

Hi, I’m trying to install ‘pip’ for Python on Mac OS. I downloaded python 3 latest version and created an alias python=‘python3’ on bash profile of the terminal of my computer.

I followed the instructions on how to install pip:
FIRST

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

AND GAME ME THIS OUTPUT:

paolo@Mac-Air-Davide ~ % curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1841k 100 1841k 0 0 7220k 0 --:–:-- --:–:-- --:–:-- 7277k

THEN

paolo@Mac-Air-Davide ~ % python get-pip.py
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Collecting pip
Downloading pip-20.2.3-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 9.2 MB/s
Installing collected packages: pip
WARNING: The scripts pip, pip2 and pip2.7 are installed in ‘/Users/paolo/Library/Python/2.7/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-20.2.3
paolo@Mac-Air-Davide ~ % pip --version
zsh: command not found: pip

WHY DID IT INSTALL ON PYTHON 2 VERSION AND NOT 3??
HOW CAN I REMOVE IT AND SAVE IT ON PYTHON 3 INSTEAD??

Hi, welcome to the forums.

[python 2.7 is already installed on your mac.]

Many folks have this issue with Mac Catalina myself included (bc it’s zsh not bash).

Check out this useful post:

I can’t. It says the page is private…

Oops. Sorry. I fixed it.

From the article:

“If you are on macOS Catalina, the new default shell is zsh. You will instead need to run source <path to conda>/bin/activate followed by conda init zsh .”

This article might be useful:

Or you could look into using conda as @lisalisaj suggests.

1 Like

I’m dying: :rofl:

3 Likes

The funny thing is that they didn’t even have to make a joke, they just diagrammed what it actually is.

3 Likes

i’m afraid that’s what my machine looks like.
:woman_facepalming:t2: :joy:

1 Like