PIP (Python Installs Packages) is a package management system designed to install and manage software packages written in the Python language. While most installations of Python come preinstalled, it may sometimes be necessary to manually install PIP on your machine. PIP can be installed on all major operating systems, including most varieties of Linux distributions. In this guide, we will outline how to install and test PIP on both CentOS, Ubuntu, and Windows 10 machines. If you are using Linux, you will first need to login via SSH.
Topics Include:
- Installing PIP on CentOS
- Installing PIP on Ubuntu
- Installing PIP on Windows 10
Install PIP on your Dedicated Server to start installing Python packages today!
Installing PIP on CentOS
To install PIP on CentOS 7, we will be making use of the YUM package manager.
- Before installing PIP, you have to first add the EPEL Repo:
- Next, you will want to update your machine:
yum -y update
- Next, install PIP using the following command:
yum -y install python-pip
- Now that we have PIP installed, we can use a few simple commands to test if the installation was successful:
For a list of commands available in PIP:
pip --help
To check the version number of PIP:
pip -v
Congratulations, you have installed PIP on CentOS!
Installing PIP on Ubuntu
To install PIP on Ubuntu, we will use the apt package manager.
- First, update your Ubuntu machine:
sudo apt update
- Next, install PIP with the following command:
sudo apt install python-pip
- To ensure that the installation was successful, run the following command:
pip --version
Congratulations, you have installed PIP on Ubuntu!
Installing PIP on Windows 10
- First, open Command Prompt.
- Next, check if Python is installed on your machine with the following command:
python
- Then download the PIP .py file from the Python Package Authority (PYPA):
https://bootstrap.pypa.io/get-pip.py
- Install PIP using the following command:
python get-pip.py
- Then, verify the installation with the following command:
pip help
If the installation was successful, you should see something like the following output:
pip 18.0 from c:userspathtopip
Congratulations, you have installed PIP on Windows 10!