


Now that we have the files downloaded and extracted, it is time to compile them./configureĪfter compile the new version of python from source, we can now configure Debian to make it our default version of python3. Once downloaded we need to extract the tar file. Next we need to download the latest version or desired version of python 3 from the python website. Step 1 is to check your current python version: python3 -Vĭownload the latest or desired version of python 3

The basic premise is, upgrade your version of python 3 to your desired version – 3.7.3 in this instance – then configure Debian to use python 3.7 at a higher priority to python 3.5. Although the generic commands should also apply to earlier versions, but your milage may vary. This post relates specifically to python version 3.7.3. I ran into a number of issues doing this so I though that I would put this quick post together to make this a little bit less complicated for anyone else trying to this. I recently spent 30 minutes figuring out how to upgrade to python 3.7 and subsequently pip version on a fresh install of Debian 9.
