Install Python 2 and pip on Ubuntu 20.04

preview_player
Показать описание
Install Python 2 with command:
$ sudo apt install python

To install pip for Python 2,

Install with python:
Рекомендации по теме
Комментарии
Автор

Thanks a lot... I had been looking for this since days.. God bless you

reshukumari
Автор

in my case every youtube videos are not working. but when i listen that what errors are wanted to say i discover those two command which actually work(on ubuntu)
sudo apt install python3 python3-pip
sudo apt install python3-pypdf2

harzgaming
Автор

can you tell me how to fix that i am getting that errot :

Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python-is-python3

E: Package 'python' has no installation candidate

Visual_Z
Автор

Thanks dude, you are the best, this work for me.

stevepranata
Автор

The link now (Dec 22 2021) gives pip for python 3 only. I need pip for python2 specifically - is this still possible?

josephwalewski
Автор

tysm, i only had pip for python 3 and there's a module i need to install that's only available for 2.7 soooo thanks

atanki