Skip to content

Instantly share code, notes, and snippets.

@vencax
Last active December 18, 2015 08:39
Show Gist options
  • Select an option

  • Save vencax/5756028 to your computer and use it in GitHub Desktop.

Select an option

Save vencax/5756028 to your computer and use it in GitHub Desktop.
Installs all necessary stuff for python web development for DEBIAN based distro.
set -x
# install necessary dependencies
# see: https://github.com/utahta/pythonbrew/issues/81
sudo apt-get -y install curl build-essential
sudo apt-get -y install libbz2-dev \
libreadline-dev libgdbm-dev \
libssl-dev libsqlite3-dev \
libsqlite3-dev \
zlib1g-dev \
libxml2-dev \
libxslt1-dev \
libreadline5 \
libreadline5-dev \
libgdb-dev \
libxml2 \
libssl-dev \
tk-dev \
libexpat1-dev \
libncursesw5-dev \
python-dev libpq-dev
# install pythonbrew
curl -kL http://xrl.us/pythonbrewinstall | bash
echo "[[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc" >> $HOME/.bashrc
source $HOME/.bashrc
# install python 2.7
pythonbrew install 2.7.2
pythonbrew use 2.7.2
pip install psycopg2 django django-debug-toolbar
# install eclise as IDE
sudo apt-get -y install eclipse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment