Skip to content

Instantly share code, notes, and snippets.

@rafaelrosafu
Last active August 29, 2015 14:02
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 rafaelrosafu/88994ff1fccd3126f202 to your computer and use it in GitHub Desktop.
Save rafaelrosafu/88994ff1fccd3126f202 to your computer and use it in GitHub Desktop.
Python environment provisioner on a Ubuntu machine. I recommend combining it with Vagrant
#!/bin/sh
# This script can be run by:
# curl <raw text URL> | sh
# Installing basic packages
sudo apt-get install -y python-pip python-dev build-essential ipython-notebook
sudo pip install --upgrade pip
sudo pip install --upgrade virtualenv
# Setup virtualenvs
mkdir ~/.python_envs
cd ~/.python_envs
virtualenv --distribute dev
# on the python source dir run
# source ~/.python_envs/dev/bin/activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment