Install Python on Ubuntu

0 votes
I have installed Ubuntu 14.04 version on my machine which comes with pre-installed Python 2.7. But I want to work on python 3.6, so I have uninstalled the previous version. Now can anyone please tell me how to install python 3.6 on my Ubuntu system.
Mar 1, 2019 in Python by Abha
• 28,140 points
1,142 views

1 answer to this question.

0 votes

@Abha you are right about pre-installation of python, which is true in case of every Ubuntu version. Python comes pre-installed with Ubuntu. But in case you want to Update python to a newer version or if you have uninstalled it and want to Install it again, you can simply do that from Ubuntu terminal using following command:

>> sudo apt update
>> sudo apt install python3.6

The above command is to install python v-3.6. If you want to install any other version, use the following command:

>> sudo apt install python[version]

After installation, to check if python is installed properly, write following command into the terminal:

>> python3 -v 
or
>> python2 -v

This will show the installed version along with other details about installed python version.

 

answered Mar 1, 2019 by Pratibha
• 3,690 points

Related Questions In Python

0 votes
1 answer

How to Install pip for python 3.7 on Ubuntu 18?

The command you're looking for is: python3.7 -m ...READ MORE

answered Nov 20, 2020 in Python by Gitika
• 65,770 points
9,598 views
0 votes
1 answer

Install Python packages on Windows?

First, pip is preferred over easy_install.  Then follow these steps to ...READ MORE

answered Oct 29, 2018 in Python by Priyaj
• 58,020 points
987 views
0 votes
1 answer

Install PIP on Python 3.6

pip is bundled with Python > 3.4 On Unix-like ...READ MORE

answered Nov 12, 2018 in Python by Priyaj
• 58,020 points
1,291 views
0 votes
1 answer

Python - Ubuntu install for SQLAlchemy not working

You can try using the version directly ...READ MORE

answered May 14, 2019 in Python by SDeb
• 13,300 points
2,251 views
0 votes
1 answer

How to install Python on Windows and set path variable?

Install python from this link https://www.python.org/downloads/ After ...READ MORE

answered May 24, 2019 in Python by anonymous
• 180 points
2,713 views
+1 vote
2 answers

Cannot install tensorflow on 32-bit Python

Unfortunately tensorflow is not supported on 32 ...READ MORE

answered Jan 13, 2020 in Python by jaakko
• 160 points

edited Apr 18, 2022 by Sarfaraz 12,292 views
0 votes
1 answer
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,267 views
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
1,180 views
0 votes
1 answer

Run python script on terminal (ubuntu)?

Your shell in the terminal has a concept ...READ MORE

answered Oct 31, 2018 in Python by Priyaj
• 58,020 points
4,903 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP