Skip to content

Instantly share code, notes, and snippets.

@zebarnabe
zebarnabe / old_python_install.sh
Created April 1, 2022 19:52
Build and install an old python
# Get and extract the tar and go to that directory
# Download source tarball into a subfolder named src, and untar:
# curl --create-dirs -L -o src/Python-2.7.18.tgz https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
# cd src
# tar -zxf Python-2.7.18.tgz
# cd Python-2.7.18
# In debian/ubuntu, otherwise we will have issues with ssl and pip...
# Reference (for mac and windows): https://stackoverflow.com/questions/45954528/pip-is-configured-with-locations-that-require-tls-ssl-however-the-ssl-module-in