How to upgrade Python version to 3.7? [closed] How to upgrade Python version to 3.7? [closed] python-3.x python-3.x

How to upgrade Python version to 3.7? [closed]


Try this if you are on ubuntu:

sudo apt-get updatesudo apt-get install build-essential libpq-dev libssl-dev openssl libffi-dev zlib1g-devsudo apt-get install python3-pip python3.7-devsudo apt-get install python3.7

In case you don't have the repository and so it fires a not-found package you first have to install this:

sudo apt-get install -y software-properties-commonsudo add-apt-repository ppa:deadsnakes/ppasudo apt-get update

more info here: http://devopspy.com/python/install-python-3-6-ubuntu-lts/


On ubuntu you can add this PPA Repository and use it to install python 3.7: https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.7

Or a different PPA that provides several Python versions is Deadsnakes:https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa

See also here: https://askubuntu.com/questions/865554/how-do-i-install-python-3-6-using-apt-get (I know it says 3.6 in the url, but the deadsnakes ppa also contains 3.7 so you can use it for 3.7 just the same)

If you want "official" you'd have to install it from the sources from the site, get the code (which you already downloaded) and do this:

tar -xf Python-3.7.0.tar.xzcd Python-3.7.0./configuremakesudo make install        <-- sudo is required.

This might take a while