Skip to content

Instantly share code, notes, and snippets.

@doole
Last active April 11, 2024 15:41
Show Gist options
  • Save doole/8651763 to your computer and use it in GitHub Desktop.
Save doole/8651763 to your computer and use it in GitHub Desktop.
Python 3.3 installation script for Debian Wheezy
PY_VER="3.3.3"
# Update
apt-get update && apt-get dist-upgrade -y
# Install required packages
apt-get install -y build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev libgdbm-dev libreadline-dev libc6-dev
# Get, compile and install python3
cd /usr/local/src
wget -c http://python.org/ftp/python/$PY_VER/Python-$PY_VER.tar.xz
tar -xJf Python-$PY_VER.tar.xz
cd Python-$PY_VER/
./configure --prefix=/usr/local --with-zlib=/usr/include && make
make install
# Get python distribute and pip
cd /usr/local/src
wget -c http://python-distribute.org/distribute_setup.py
python /usr/local/src/distribute_setup.py install
easy_install pip
# Cleanup
cd /usr/local
rm -rf Python-$PY_VER/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment