How to install PIP on Linux, Windows and MacOS
PIP is a recursive acronym which means Pip Installs Packages. It is a crucial tool for Python developers, as it simplifies the process of installing and managing Python packages. While the steps to install PIP are similar across different operating systems, there are slight variations that users should be aware of.
Below is a guide tailored to help you install PIP on various operating systems. This guide assumes you have Python installed already. Checkout our blog on installing Python here.
TLDR
Linux
Debian/Ubuntu:
sudo apt-get install python3-pip
Arch:
sudo pacman -S python-pip
Windows
- PIP is included by default when you install from Python.org
MacOS
- After installing Python via Homebrew, PIP is installed automatically.
Detailed Instructions:
- Debian/Ubuntu
- Arch Linux
- Windows
- MacOS
Debian/Ubuntu
Open a Terminal
- Use a keyboard shortcut, typically
Ctrl + Alt + T
. - Alternatively, you can search for “Terminal” in your system’s application menu and open it from there.
Install PIP
Run the following commands, to install using the apt package manager.
sudo apt-get update && sudo apt upgrade
sudo apt-get install python3-pip
sudo apt-get update && sudo apt upgrade
sudo apt-get install python3-pip
sudo apt-get update && sudo apt upgrade sudo apt-get install python3-pip
Check if PIP is Installed
You can type the following command into the terminal and ensure the output lists a PIP version.
pip3 --version
pip3 --version
pip3 --version