Here is how to install pip on macOS or OS X in Python.


easy_install pip 

Output

 


Explanation

Pip is a package management system for Python that allows you to install and manage third-party Python packages. By default, pip is not included with the Python installation on macOS or OS X. aside from the above mentioned method there other ways to install pip:

1. Using the curl command: You can also use the curl command to download the pip installation script and then run it using Python. Open a terminal window and run the following command:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
2. Using the Homebrew package manager: If you have Homebrew installed on your system, you can use it to install pip. Open a terminal window and run the following command:
brew install pip
Once pip is installed, you can use it to install packages by running the command pip install package_name. You can also use the command pip list to view a list of the packages that are currently installed on your system, and pip uninstall package_name to remove a package.

*Please note that the above instructions are for macOS and OS X, for other operating systems the installation process could be different.


Recommended Course

Python Mega Course: Learn Python in 60 Days, Build 20 Apps
Learn Python on Udemy completely in 60 days or less by building 20 real-world applications from web development to data science.