%Begin How to Install PIP on a Mac GA
S
REGULAR Menu Lifewire Tech for Humans Newsletter! Search Close GO Computers, Laptops & Tablets > Apple
How to Install PIP on a Mac
Make everything easier with PIP for Python
By Aaron Peters Aaron Peters Writer Villanova University Aaron Peters is a writer with Lifewire who has 20+ years experience troubleshooting and writing about consumer and business technology.
visibility
113 views
thumb_up
11 likes
His work appears in Linux Journal, MakeUseOf, and others. lifewire's editorial guidelines Updated on September 11, 2020 Tweet Share Email Tweet Share Email
In This Article
Expand Jump to a Section Step-by-Step: Installing PIP on macOS Examining the Python Install Confirming Python Is Working Using Python's PIP In Python, using Python packages published by other developers in your own project is one thing that will make your life easier.
comment
3 replies
V
Victoria Lopez 8 minutes ago
The Python Package Index, or PyPI, is a huge repository of code you can use. Learn how to get you st...
A
Ava White 3 minutes ago
These instructions should work on any macOS version supported by the current Python installer, which...
The Python Package Index, or PyPI, is a huge repository of code you can use. Learn how to get you started with PyPI and its installer program, PIP (Package Installer for Python).
comment
2 replies
R
Ryan Garcia 3 minutes ago
These instructions should work on any macOS version supported by the current Python installer, which...
E
Elijah Patel 3 minutes ago
While Python 2 used to come pre-installed in macOS, you should use the newer version, Python 3. The ...
These instructions should work on any macOS version supported by the current Python installer, which includes v10.6+ (Snow Leopard) for the 32-bit installer, and v10.9 (Mavericks) for the 64-bit-only version of the current installer. The Python Software Foundation
How to Install PIP on macOS
PIP is the default package installer and was recently added to to the core distribution of Python. This means to install PIP we need to install Python.
comment
1 replies
L
Lily Watson 8 minutes ago
While Python 2 used to come pre-installed in macOS, you should use the newer version, Python 3. The ...
While Python 2 used to come pre-installed in macOS, you should use the newer version, Python 3. The only reason to continue using v2.7 is to support older, existing applications.
comment
3 replies
A
Aria Nguyen 4 minutes ago
Luckily, if you're just getting started, you don't have any of these. Python installation is...
H
Hannah Kim 10 minutes ago
To get it up and running, take the following steps: First, head to the Python website and grab the l...
Luckily, if you're just getting started, you don't have any of these. Python installation is a standard .PKG-based affair.
comment
2 replies
J
Joseph Kim 18 minutes ago
To get it up and running, take the following steps: First, head to the Python website and grab the l...
J
Julia Zhang 10 minutes ago
The first screen will provide some info on the install, click Continue to move along. Click Continue...
To get it up and running, take the following steps: First, head to the Python website and grab the latest release. Unless you're on an older machine and have to use a previous version of macOS for some reason, download the 64-bit installer file. This is the standard macOS .PKG format, so you can just click the installer file to kick things off.
comment
1 replies
E
Emma Wilson 13 minutes ago
The first screen will provide some info on the install, click Continue to move along. Click Continue...
The first screen will provide some info on the install, click Continue to move along. Click Continue on the following page as well, which lets you know the project will stop providing support for 32-bit installers from v3.8 onward. The next screen asks you to accept the license for Python.
comment
1 replies
S
Sebastian Silva 3 minutes ago
Click Continue, then click Agree. You'll need to select a destination for the install on the fol...
Click Continue, then click Agree. You'll need to select a destination for the install on the following screen.
comment
1 replies
N
Noah Davis 7 minutes ago
You can click Install to place it on your main drive, or click Customize if you have somewhere else ...
You can click Install to place it on your main drive, or click Customize if you have somewhere else in mind. You'll also need to enter your password to continue. Now the installer will start copying the files.
comment
1 replies
G
Grace Liu 3 minutes ago
Once the installation is finished, the app's folder will open in Finder.
Examining the Pyth...
Once the installation is finished, the app's folder will open in Finder.
Examining the Python Install on macOS
The installation contains a few items, as follows: Two .RTF files: Once contains the License; the other the ReadMe file.Two .COMMAND files: These are there to help perform some configuration. The Install Certificates.command file will set up some SSL certificates, and the Update Shell Profile.command file will help if you have trouble using Python 3, and find that you're always being directed to Python 2.IDLE app: An integrated development environment specifically for Python.Python Launcher: Helps you to configure some settings related to launching Python scripts.
comment
3 replies
J
Jack Thompson 9 minutes ago
How to Confirm Python Is Working on macOS
Before you can use Python, it's best to con...
V
Victoria Lopez 7 minutes ago
Enter (or paste) the following code into an empty text file and naming it "hello-world.py": ...
How to Confirm Python Is Working on macOS
Before you can use Python, it's best to confirm your Python installation is working correctly. Try the following command in Terminal: python --version
Python 3.7.4
If you want to further confirm things, try running a simple Python script.
Enter (or paste) the following code into an empty text file and naming it "hello-world.py": print ("Hello World!")
Now, at the command prompt, run the following: python \path\to\hello-world.py
Hello World!
How to Use Python' s PIP on macOS
We know now Python is working, and we can move on to using PIP. Fortunately, there's nothing to do here: PIP comes installed out-of-the-box on newer versions of Python. That said, you should familiarize yourself with it.
Using the following command in Terminal will give you an overview of what PIP's all about: pip --help
The first thing you'll probably want to do is look for a package you can use, and pip search is what you need for that. It will search the Python Package Index (PyPI) for your search term. Suppose we want to create our Python application to save passwords.
comment
2 replies
E
Elijah Patel 18 minutes ago
macOS already has a great mechanism for this: Keychain. The following command will show a list of al...
A
Aria Nguyen 37 minutes ago
You can install a package with the following command: pip install macos-keychain
Unfortunately...
macOS already has a great mechanism for this: Keychain. The following command will show a list of all the packages in PyPI with the keyword "keychain": pip search keychain
In the results, there's a package called macos-keychain, which is exactly what we're looking for. So, instead of coding things like password entries, encryption, and hooking into system events, we can just download this and integrate it to our needs.
You can install a package with the following command: pip install macos-keychain
Unfortunately, updating all installed packages isn't as easy as updating Linux distributions. You need to do so for each package when you see it's out of date. Use the following command: pip install macos-keychain --upgrade
Finally, removing a package is as easy as: pip uninstall macos-keychain
Was this page helpful?
comment
2 replies
H
Hannah Kim 10 minutes ago
Thanks for letting us know! Get the Latest Tech News Delivered Every Day
Subscribe Tell us why! Othe...
J
Joseph Kim 27 minutes ago
Windows 8: Editions, Updates, Licenses, & More Remote Utilities 7.1 Review (Free Remote Access Tool)...
Thanks for letting us know! Get the Latest Tech News Delivered Every Day
Subscribe Tell us why! Other Not enough details Hard to understand Submit More from Lifewire How to Install PIP on Windows How to Fix Oci.dll Is Missing or Not Found Errors How to Install Python on Mac How to Install Mac OS on PC How to Make a Bootable Flash Installer of OS X or macOS How to Get Plex on Your Apple TV How to Install and Setup BASH on Windows 10 How to Fix It When a JNI Error Has Occurred in Minecraft How to Download YouTube Videos on Linux What Version of Windows Do I Have?
Windows 8: Editions, Updates, Licenses, & More Remote Utilities 7.1 Review (Free Remote Access Tool) How to Install MySQL on macOS How to Downgrade From Catalina to Mojave Snappy Driver Installer Review (Free Driver Updater) How to Clean Install Windows 8 Pro Upgrade Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Cookies Settings Accept All Cookies