Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (18.4k points)

Is there any way to install Python 2.7 on Ubuntu 18.04? I tried the below command, It didn't work.

sudo apt install python-minimal

Is there any way to fix it manually? 

1 Answer

0 votes
by (36.8k points)

Run the below commands to ensure your containers are up to date before installing:

sudo apt update

sudo apt upgrade

sudo apt install python2.7

Then to install pip for python 2:

sudo apt install python-pip

Want to be a Data Science expert? Come and join this Data Science Courses

 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Feb 5, 2021 in Linux by blackindya (18.4k points)

Browse Categories

...