How To Download Pip On Mac Through Terminal

Python3 should already be installed since Mac OS X High Sierra, but pip3 may not yet be installed.

On Mac OS you should be able to launch a Terminal, which looks like this…

Ensure Python3 is Available

After it has launched, type the following into the Terminal and press Enter

Install and upgrade pip on Mac OS X Mac OS X latest Yosemite comes with Python version 2.7, but not with pip ( package manager ). If you have Command Line Tools installed, the installation of pip. This video was prepared as part of First Python Notebook, an online textbook available for free at Learn more about the au. In our next Terminal tip, we'll show you how to download files from the web. Of course it's probably easier just to use the GUI of Safari, but using Terminal gives you additional stats like file.

How To Download Pip On Mac Through Terminal Space

python3

If python3 is installed this should launch the python shell, and take you to an interactive python prompt which looks like >>> where you can type 4+4, and press Enter to see 8. For example…

Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 03:03:55)

Pip on macHow to install pip on mac

Pip On Mac

[GCC 4.2.1 (Apple Inc. build 5666) (dot 3) on darwin

Type “help”, “copyright”, “credits” or “license” for more information

Mac

>>> 4+4
8

If it launched a python shell as expected, press CTRL+D to exit the shell.

If python3 is not installed, the shell will not launch and it will instead report…

-bash: python3: command not found

If you don’t yet have python3, you can download a Mac OS installer for python 3.6.5 by clicking here.

Ensure Pip3 is Available

Once you have python3 installed, type the following into Terminal and press Enter.

pip3 --version

This should show the version of pip3 like…

pip 9.0.3 from /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (python 3.6)

If you see a version report, keep the console window open and proceed to configuring your pip3 install using Terminal.

If pip3 is not installed you will see

-bash: pip3: command not found

How To Install Pip On Mac

Use python3 to install pip3 by copy-pasting the command lines below into the Mac OS Terminal prompt, pressing Enter each time…

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

(This command line uses the curl downloader to download a script file to the current directory)

sudo python3 get-pip.py

(This command line uses sudo to run the downloaded script with root privileges)

After the script completes, keep the console window open and proceed to configuring your pip3 install using Terminal