Skip to content

Instantly share code, notes, and snippets.

@martialp
Created April 16, 2019 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martialp/d425e1db55556b31cf8ca3ff9ffd8bde to your computer and use it in GitHub Desktop.
Save martialp/d425e1db55556b31cf8ca3ff9ffd8bde to your computer and use it in GitHub Desktop.
Install any python version on debian

Install python 3.5.7 on debian:

From python.org:

Python 3.5.7 has only been released in source code form; no more official binary installers will be produced.

Install build dependencies (not sure list is complete):

sudo apt install build-dep python-psycopg2

Then,

wget https://www.python.org/ftp/python/3.5.7/Python-3.5.7.tgz
tar -xvzf Python-3.5.7.tgz
cd Python-3.5.7
./configure --enable-optimizations
make
make altinstall

sources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment