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
• 27,800 points
120 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

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
• 57,530 points
77 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
• 57,530 points
111 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,230 points
416 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
259 views
+1 vote
2 answers

Cannot install tensorflow on 32-bit Python

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

answered Jan 13 in Python by jaakko
• 160 points
1,471 views
+1 vote
1 answer

How to install tensorflow using anaconda and python 3.7.1 on windows?

Since I am using python 3.5 so ...READ MORE

answered Aug 19, 2019 in Python by Arvind
• 2,980 points
2,329 views
0 votes
1 answer
0 votes
1 answer

Install postgreSQL on Ubuntu

Installing PostgreSQL on Ubuntu is very simple, ...READ MORE

answered Mar 22, 2019 in Database by Nitesh
101 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,250 points
132 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
• 57,530 points
2,955 views