Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dongzhuoyao/76c46acf6a9a5b21b52dc3c96fae08db to your computer and use it in GitHub Desktop.
Save dongzhuoyao/76c46acf6a9a5b21b52dc3c96fae08db to your computer and use it in GitHub Desktop.
how to install python3.5 on ubuntu 14.04
Felix Krull runs a PPA offering basically any version of Python (seriously, there is 2.3.7 build for vivid...) for many Ubuntu releases at
https://launchpad.net/~fkrull/+archive/ubuntu/deadsnakes
Do the usual:
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.5
It will not overwrite your existing python3.4 which is still symlinked as python3. If you want python3.5 to be the default python3, change the symlink
cd /usr/bin
sudo rm python3
sudo ln -s python3.5 python3
Actually, DON'T change the symlink! There are apparently many system functions that don't work properly with python3.5. I tried this and afterwards couldn't open a terminal, software updater,...
The upgrade to Wily will adapt the meta-package python3 to point to python3.5. I don't expect any breakage, but at this point the foreign repository is not needed anymore. So to be really safe, you can purge the PPA before doing the upgrade.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment