Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have already python 2.7 on my machine. I can't recall if I installed it or it is a built-in install. Anyhow, I would like to install work with python 3.x and I wonder if I need first to uninstall the 2.7 version. Are there any component in the system which rely on this version?

Thanks.

share|improve this question
6  
Don't remove 2.7!! It will break your system. What is your Ubuntu version? If it is later than 12.04, python 3 is slready installed (additionally), not instead of). – Jacob Vlijm Jan 30 at 10:19
    
The latest - 15.10 – Elimination Jan 30 at 10:22
    
when I run "python" on terminal it uses the 2.7 version. – Elimination Jan 30 at 10:23
    
Wait, I will post an answer :) – Jacob Vlijm Jan 30 at 10:23
    
Related: askubuntu.com/questions/449555/… – Takkat Jan 30 at 10:54
up vote 10 down vote accepted

Don't remove python 2!!

Ubuntu versions, later then 12.04 already have python 3 installed. This is an additional version, not instead of.

A lot of software (still) depends however on 2.7, removing it will break the system. On Ubuntu, python 2 is called by:

python

or

python2

while python 3 is called by

python3

See the current version(s)

If you run:

python3 -V

you will get your current version of python 3, while

python -V

will output the current version of python 2

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.