

So we need to download dependencies, source code and the build it by yourself. 3.6.4 as in example below) you need to install it manually. I recommend using containers as the layer of abstraction/isolation for each large-enough project and only using virtualenv (within a container) when you require the latest/fixed Python versions.By default Ubuntu is shipped with Python 3.5.2 or whatever but to use latest version (e.g. You could easily install multiple Pythons/projects within a single container, but things could quickly get bloated. You have now successfully installed Python 3.5.2 on Ubuntu 14.04. My instructions above get you the version you want, whilst keeping your Host protected from different Python installs. 23, 2016 Download Release Notes Python 2.7.13 Dec. 17, 2017 Download Release Notes Python 3.6.0 Dec. If you are using the Python version that comes with your Linux distribution, you can install Matplotlib via your package manager, e.g. 17, 2017 Download Release Notes Python 3.5.3 Jan. This still doesn't guarantee you will get the version you wish. 8, 2017 Download Release Notes Python 3.6.2 JDownload Release Notes Python 3.6.1 MaDownload Release Notes Python 3.4.6 Jan. So the only way to bump up/down your Python version is to move to a newer/older Ubuntu release. The simple reason for this is that even if you use containers, you are still stuck with the system-version. To make python3 use the new installed python 3.6 instead of the default 3. In addition to installing Python 3.6, the installation of Python 3.7 has been tested using the same method, and all worked without problem. Source /home/ubuntu/project1/bin/activateĪbove, I mentioned that using containers for different Python versions is a lazy answer. We can create/start/attach our container using the LXC Ubuntu template:

I didn't want to risk borking my machine with a newer Python version being installed (even if it was installed in parallel to the system-version), so I settled on doing everything within an LXC container. Containers (this is a lazy answer, and you will see why below).Pythonbrew (an old favourite of mine, but the project is not being maintained anymore).

Unfortunately, Ubuntu 14.04 is stuck on 3.4.3 and it is unlikely that 3.5 will ever come to this LTS release (as per the way the release-schedules work, or my understanding thereof).ĭuring the discovery stage, I investigated and found a variety of ways to install different versions of Python on the same system. Recently, I have wanted to experiment with the latest features of Python3 (3.5.2 as of this date). Installing latest Python3 version on Ubuntu 14.04
