Take the 2-minute tour ×

I'm just wondering if it is okay install the package python3.2 from ubuntu's repositories?. I have been so unlucky with ubuntu lately, that I'm afraid to do anything because everything seems to break my system.

The point is that I want to learn python 3, but without breaking the python dependencies of my system.

sudo aptitude install -s python3.2 doesn't show any conflicts, but still I prefer to ask.

Thank you in advance.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Python 2.x and 3.x happily coexist on ubuntu. All python scripts not specifically launched with python 3 will default to python 2 though.

aking1012@devlaptop:~$ python3
[GCC 4.6.1] on linux2
>>> quit()
aking1012@devlaptop:~$ python
[GCC 4.6.1] on linux2
>>> quit()

If you're want to test 3 packages I would use something like Aptana where you can select which python dist you want to test under.

Credit to James Henstridge on suggesting the pseudo-package python3 over a specific version number.

share|improve this answer
Thank you, I try it and It works! –  raulricardo21 Mar 15 '12 at 4:44
It is probably worth noting that installing python3 rather than python3.2 is a better choice: on current releases it will have the same effect, but it has the benefit of easier upgrades when Python 3.3 gets integrated into a future Ubuntu release. –  James Henstridge Mar 15 '12 at 5:28
yes, that's how i installed it, but i forgot to mention that you should install pseudo-packages whenever you can –  hbdgaf Mar 15 '12 at 5:41

Your Answer


