PDA

View Full Version : Update to python3 and make primary compiler



cheerPuncH
January 15th, 2013, 06:24 PM
Hi,

I've googled this and thought it would be easy, but it seems it's not very straight forward.

I'm working on an Ubuntu 10.04.2 server with python version 2.6.5.

I need to update to Python3. I downloaded and installed Python3.3 in /, but I don't know where I should put it and furthermore, when I do the $python -V command, it still returns 2.6.5. Where do I put Python3.3 and how do I make it my primary compiler? (I know not to delete Python 2.6.5 because of system dependencies)

Thanks,
Jeri

Cheesemill
January 15th, 2013, 08:04 PM
No need to download anything manually, Python 3 is in the repos.

sudo apt-get install python3

cheerPuncH
January 15th, 2013, 08:33 PM
perfect