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
• 6,560 points
13 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 2,520 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
• 56,120 points
19 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
• 56,120 points
28 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
• 9,740 points
7 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 3 days ago in Python by anonymous
• 180 points
15 views
0 votes
1 answer

Install pip in Python 3.4

Don't worry! Python already comes in default ...READ MORE

answered May 1, 2018 in Python by aayushi
• 750 points
40 views
+1 vote
2 answers

Measuring the distance between pixels on OpenCv with Python

You can try this: Mat pts1(nPts, 1, CV_8UC2), ...READ MORE

answered Aug 24, 2018 in Python by Omkar
• 66,050 points
1,928 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
16 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,200 points
51 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
• 56,120 points
415 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.