Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 975 Bytes

install-pip.md

File metadata and controls

32 lines (22 loc) · 975 Bytes

Install pip

Pip is the PyPA recommended tool for installing Python packages.

Official website.

Note: There is a bug in some versions of pip that disables pip after an upgrade (pip install --upgrade pip) with the following error:

Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
ImportError: cannot import name 'main'

The simplest fix I've found is to run the following command to upgrade pip by installing again the latest version (use python instead for python2):

wget https://bootstrap.pypa.io/get-pip.py | sudo python3

Install latest pip on GNU/Linux

wget https://bootstrap.pypa.io/get-pip.py | sudo python

Install latest pip3 on GNU/Linux

wget https://bootstrap.pypa.io/get-pip.py | sudo python3