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 in Python by Abha
• 27,200 points
77 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 by Pratibha
• 3,680 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,300 points
48 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,300 points
81 views
0 votes
1 answer

Python - Ubuntu install for SQLAlchemy not working

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

answered May 14 in Python by SDeb
• 13,210 points
141 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 in Python by anonymous
• 180 points
90 views
0 votes
1 answer

Cannot install tensorflow on 32-bit Python

Tensorflow is only supported on Python 64-bit. ...READ MORE

answered May 29 in Python by Zulaikha
• 870 points
410 views
0 votes
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 in Python by Arvind
• 2,960 points
474 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 in Database by Nitesh
69 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
101 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,300 points
2,180 views