Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Python Tutorial
  • Interview Questions
  • Python Quiz
  • Python Glossary
  • Python Projects
  • Practice Python
  • Data Science With Python
  • Python Web Dev
  • DSA with Python
  • Python OOPs
Open In App
Next Article:
How to Install PIP3 in Linux?
Next article icon

How To Install PIP in macOS

Last Updated : 04 Feb, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

PIP is a standard package manager for Python Programming Language that enables users to install and manage additional libraries and dependencies not included in the standard Python library. These files are stored in a large “on-line repository” termed as Python Package Index (PyPI). pip uses PyPI as the default source for pip package manager and their dependencies. In this article, we will see How to Install PIP on a Mac and by using pip you can install any package.

Prerequisites:

  • macOS – Ventura or above
  • Python – v 3.1 or above
  • Admin Rights

Verify the Python Installation

The first step is to verify the Python in your macOS, below are the steps to perform this action:

Step 1: Open mac Terminal

Access to the Terminal via Applications > Utilities > Terminal

macos-terminal

Terminal

Step 2: Check Python version

Type the following command and hit the Enter button:

python3 --version
  • If Python is installed, you’ll get the version on your screen, something like:
verify-version-macos-python

Verify Python version

  • If not installed, visit the official website to download and install the Python Latest Version in your macOS.

Download and Install Pip on macOS

pip can be downloaded and installed using the command line (ensurepip module) by going through the following steps:

Note: Python 3.4 or later versions include the ensurepip module, this can help during PIP installation.

Step 1: Run the Command

Open the terminal and type the following command:

python3 -m ensurepip --upgrade

Note: Running this command will install or upgrade PIP in your macOS.

Alternatively, you can download and install pip using the get-pip.py script. Here’s what you need to do:

Step 2: Download the Script

Download the  get-pip.py (https://bootstrap.pypa.io/get-pip.py) file and store it in the same directory as python is installed or use the following command to download pip directly:

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

Step 3: Run the Script

Now execute the downloaded file using the below command

python3 get-pip.py

Step 4: Complete the PIP Installation process

Wait until the installation process gets completed:

PIP Installation

Verify PIP Installation

One can easily verify if the pip has been installed correctly by performing a version check on the same. Just go to the command line and execute the following command:

pip3 --version pip --version

Verify PIP version

Update PIP on a Mac

You can use the following command in your terminal to upgrade your pip:

python3 -m pip install –upgrade pip

Install Any Specific Version of PIP

To install a specific version you can enter the following version number to install the specific version.

pip install --upgrade pip==1.2.1

Command to Uninstall Any Previous Installation of pip

You can use one of the commands to uninstall the pip command based on your system:

pip uninstall pip sudo apt-get remove python-pip

Conclusion

By following the above guide, you can easily download, install, verify, update (even for any specific version) of PIP in MacOS. Whether you’re a beginner, or an expert developer, PIP is an essential tool for every Python project. Using PIP, you can easily manage libraries and integrating in your workflow will ensure that you are handling your Python Projects seamlessly with the help of some of the most popular tools like Pandas and NumPy for data analysis and TensorFlow and Scikit-Learn for Machine Learning.



Next Article
How to Install PIP3 in Linux?

N

NaveenArora
Improve
Article Tags :
  • Python
  • Python-pip
Practice Tags :
  • python

Similar Reads

  • How to Install PIP3 in Linux?
    Python, a versatile and widely-used programming language, has a powerful package management system called pip. Pip is used to install and manage Python packages effortlessly. In this article, we will explore the step-by-step process of installing pip3 on a Linux system. While pip is the package inst
    4 min read
  • How to install PIP in Ubuntu?
    PIP is the most widely used package management system for Python, allowing you to install and manage Python libraries and packages easily. If you're developing in Python on Ubuntu, having PIP installed is essential for downloading and managing the dependencies of your projects. In this guide, we’ll
    3 min read
  • How to Install Tkinter on MacOS?
    In this article, we will learn how to install Tkinter in Python on MacOS. Tkinter is a Python binding to the Tk GUI toolkit. It is the standard Python interface to the Tk GUI toolkit, and is Python's de-facto standard GUI. Installation:Method 1: Using pip to install Tkinter Follow the below steps to
    2 min read
  • How to Install Pytorch on MacOS?
    PyTorch is an open-source machine learning library based on the Torch library, used for applications such as computer vision and natural language processing, primarily developed by Facebook's AI Research lab. It is free and open-source software released under the Modified BSD license. Prerequisites:
    2 min read
  • How to Install Pandas in Python?
    Pandas in Python is a package that is written for data analysis and manipulation. Pandas offer various operations and data structures to perform numerical data manipulations and time series. Pandas is an open-source library that is built over Numpy libraries. Pandas library is known for its high pro
    5 min read
  • How to Install Turtle in Python on MacOS?
    Turtle is a Library of Python Language. Turtle graphics is the best way to introduce programming to kids. We can design pictures and create shapes on a virtual canvas provided by a turtle. Installing the Turtle Package on MacOS using PIP To install Turtle Package on MacOS follow these steps: Step 1:
    1 min read
  • How to Install Opencv 4 on MacOS?
    In this article, we will learn how to install Opencv 4 in Python on MacOS. OpenCV (Open Source Computer Vision Library) is a library of programming functions mainly aimed at real-time computer vision. Installation:Method 1: Using pip to install Opencv 4 Package Follow the below steps to install the
    2 min read
  • How to Install Chainer in Python on MacOS?
    Dееp lеarning is a type of machinе lеarning that imitatеs how our brains work using artificial nеural nеtworks. It deals with solving difficult problems by teaching thеsе artificial nеural nеtworks with lots of data. This helps them make prеdictions, recognize patterns, and do tasks without being to
    2 min read
  • How to install NumPy in PyCharm?
    In this article, we will cover how to install the Python NumPy package in PyCharm. NumPy is a general-purpose array-processing Python package. It provides a high-performance multidimensional array object, and tools for working with these arrays. As one of the most important tool while working with d
    2 min read
  • Install Pygame in MacOS
    PyGame is a collection of modules that break through the language of Python applications. These modules are designed to edit video games. PyGame, therefore, includes computer graphics and audio libraries created for the use and language of Python programs. At first, open the Terminal which is locate
    1 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences