How to update to the latest Python version in Ubuntu? I tried sudo apt-get install python3 but it says that the current (3.3.1) is already the latest.
Asked
Active
Viewed 1.6k times
5
dobey
- 41,650
2 Answers
3
Try adding this PPA (notice, I haven't tested it, but it looks fine): https://launchpad.net/~fkrull/+archive/deadsnakes
To do this, open a terminal, and run this:
sudo apt-add-repository ppa:fkrull/deadsnakes # Adds the PPA
sudo apt-get update # Updates the lists
And then run the system updates (I would recommend this over sudo apt-get install python3 because other packages may need to be updated for it to work fine):
sudo apt-get dist-upgrade # dist-upgrade might be needed if python3
# needs to install or remove packages
# for it to work
MiJyn
- 3,396
3
Ubuntu 13.04 comes with pre-loaded python3 (3.3.2). So you may already have python3 (3.3.2) installed. try python3 in terminal instead of just python
Cloud Engineer
- 7,493
- 3
- 14
- 9