Withnail
Withnail

Reputation: 720

Updating to Python 3 on Kubuntu 11.04 -- do/should I uninstall previous versions?

Is this going to break anything? Is there anything I would need to keep in mind if I do uninstall the older versions?

Upvotes: 2

Views: 810

Answers (2)

Lennart Regebro
Lennart Regebro

Reputation: 172229

You can't remove Python 2, Ubuntu will stop working. Python 3 is however a separate package and can be installed in parallell. Since Python3's exe is called 'python3' this doesn't have any negative effects.

Upvotes: 3

cwallenpoole
cwallenpoole

Reputation: 82008

Personally, I would keep both around (and when upgrading to Ubuntu 11.04, I did). The problem is that there are still a lot of libs which are only in Python 2.x. The good news is that they are decreasing in number/prominence, but too much relies on the older way of doing things to reliably remove it.

If you feel more courageous than I, install a Py3k version and then change the #!/usr/bin/env python variable to reflect Py3k and then see what breaks (and I am almost positive something will), but personally, I am perfectly fine using #!/usr/bin/env python3 for a while longer.

I HIGHLY recommend that you keep a 2.6 >= Python < 3 version around for a while though, because I will bet money that it will break things if you remove it.

Upvotes: 4

Related Questions