5

How do I uninstall Python 2.7 and install the latest Python 3.3.x? Tried using "upgrade" but it didn't solve my problem.

8

You can install the 3.x version you want by running:

sudo apt-get install python-3.2

Which will install version 3.2 of python side-by-side with version 2.7.

I was doing this previously and I recall that you then need to specifically specify the version of python you want to run such as python3.2.

According to http://packages.debian.org/search?keywords=python3.3, there isn't a version of python 3.3 available for wheezy

I also don't see a python3.3 in the Raspbian package list located at this link courtesy of this answer.

Here's something from the Raspberry Pi forum that shows how to download and compile Python 3.3.2 directly on the Pi. This doesn't say how long it takes to compile.

1

I use testing in my /etc/apt/sources.list:

deb http://mirrordirector.raspbian.org/raspbian/ testing main contrib non-free rpi

This gives you a good balance between stability and up-to-dateness (I have never had problems with testing on any of my debian boxes, RPi or others).

As example, this would provide you, as of Oct 2015, Python 3.4 (while the version in stable is 3.2).

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.