Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2012 14:15
What would you like to do?
Python 2.7.3 for old gnu/linux systems (test debian/ubuntu)
# Install minimal development tools
apt-get install build-essential
# Get python from official python ftp
cd /tmp
tar jxvf Python-2.7.3.tar.bz2
cd Python-2.7.3/
# Configure, compile and install python to /opt/py2.7
./configure prefix=/opt/py2.7 --enable-shared --with-signal-module --with-threads
make install
# Configure library paths, alternatively you can use LD_LIBRAY_PATH to execute python
echo /opt/py2.7/lib/ >> /etc/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment