2

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.

  • 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 '16 at 10:19
  • The latest - 15.10 – Elimination Jan 30 '16 at 10:22
  • when I run "python" on terminal it uses the 2.7 version. – Elimination Jan 30 '16 at 10:23
  • Wait, I will post an answer :) – Jacob Vlijm Jan 30 '16 at 10:23
  • Related: askubuntu.com/questions/449555/… – Takkat Jan 30 '16 at 10:54
10

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

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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