Install pip

Download the installation script from pypa.io:


The script downloads and installs the latest version of pip and another required package named setuptools.

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


Run the script with Python:


$ python get-pip.py --user OR python3 get-pip.py

Add the executable path to your PATH variable: ~/.local/bin

To modify your PATH variable (Linux, macOS, or Unix)

Find your shell's profile script in your user folder. If you are not sure which shell you have, run echo $SHELL.


$ ls -a ~
.  ..  .bash_logout  .bash_profile  .bashrc  Desktop  Documents  Downloads
Bash – .bash_profile, .profile, or .bash_login.

Zsh – .zshrc

Tcsh – .tcshrc, .cshrc or .login.

Add an export command to your profile script.


export PATH=~/.local/bin:$PATH
This command adds a path, ~/.local/bin in this example, to the current PATH variable.

Load the profile into your current session.


$ source ~/.bash_profile
Verify that pip is installed correctly.


$ pip --version

pip 19.3.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)

Popular posts from this blog

How to delete / clear queue of PowerMTA