Adsense HTML/JavaScript

Tuesday, June 23, 2020

Install Python 2 and pip on Ubuntu 20.04

In 20.04 LTS, the python included in the base system is Python 3.8. Python 2.7 has been moved to universe and is not included by default in any new installs. (ref: Ubuntu 20.04 LTS (Focal Fossa) release notes)


To install Python 2 on Ubuntu 20.04, it's easy as run the command:
$ sudo apt install python

But you cannot install pip using old approach! If you run the "sudo apt install python-pip", you will be report with "E: Unable to locate package python-pip".

To install pip for Python 2 on Ubuntu 20.04:

Visit https://bootstrap.pypa.io/ and download get-pip.py

Install with python:
$ sudo python get-pip.py

No comments:

Post a Comment