February 2020
Intermediate to advanced
432 pages
10h 50m
English
This section applies to the case in which you need to install pip or upgrade it:
$ sudo apt remove python-pip
We do this because the Ubuntu repository may not have the latest version of pip. In the next step, you will access the original source to get all of the updates.
$ sudo apt update$ curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"$ sudo python get-pip.py
$ pip --version pip 19.3.1 from /usr/local/lib/python2.7/site-packages/pip (python 2.7)
If it was already present in your system, you can easily upgrade using pip itself:
$ sudo pip install --upgrade pip ...