1

Will installing Python 3.2 from the software center replace the default Python 2.7 on 12.04?

I would like to keep using Python 2.7, because I am afraid Python 3.2 will not recognize code written for 2.7. Thanks.

Btw, what is the default Python version in 14.04? I wonder if it is worth to upgrade my Ubuntu 12.04.

1 Answer 1

2

Will installing Python 3.2 from the software center replace the default Python 2.7 on 12.04?

No, it won't.

Installing python 3.2 on 12.04 will not replace the python 2.7 already present. All applications using python 2.7 will continue to work and you can you use python 3.2 for whatever applications you want to run using

python3 filename

However, do not mess with the binary files, like replacing /usr/bin/python with /usr/bin/python3 or anything.

If you just want python to refer to python3 in your 12.04, just create aliases. This will safely prevent applications from misbehaving and/or crashing.

Btw, what is the default Python version in 14.04?

The default python version in 14.04 is python 2.7, although python 3.2 comes pre-installed. By default version, I mean, python refers to python 2.7.6.

2
  • thanks. If I have both python 3.2 and python 2.7 installed, when I install some python libraries, do I have to install two copies, each for each Python version?
    – Tim
    Jul 9, 2014 at 5:47
  • @Tim: yes, you will have to install the libraries for both individually.
    – jobin
    Jul 9, 2014 at 5:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .