pip is a tool for installing and managing Python packages.
As well as Python,
pip can be install on various operation systems: Linux, Mac, Windows, etc.
In this post i am showing how to install
pip on MacOS and how to install
pip on Linux (Ubuntu and CentOS).
Python: Install PIP
To install the latest version of
pip, run the below commands depending on your OS.
Install PIP on MacOS
pip on MacOS, using
easy_install command and upgrade
pip to the latest version:
$ sudo easy_install pip $ sudo pip install --upgrade pip
Install PIP in Ubuntu
pip in Ubuntu, using
apt-get package manager:
$ sudo apt-get update $ sudo apt-get install python-pip $ sudo pip install --upgrade pip
Install PIP in CentOS
pip in CentOS from EPEL repository, using
yum package manager:
# yum update # yum install epel-release # yum install python-pip # pip install --upgrade pip