Skip to content

Instantly share code, notes, and snippets.

@tcr
Created December 4, 2012 05:01
Show Gist options
  • Select an option

  • Save tcr/4200761 to your computer and use it in GitHub Desktop.

Select an option

Save tcr/4200761 to your computer and use it in GitHub Desktop.
How do you install Python 2.7 on Dreamhost?
read -p "Domain name: " site
cd ~
mkdir ~/tmp
cd ~/tmp
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar zxvf Python-2.7.3.tgz
cd Python-2.7.3
./configure --prefix=$HOME/Python27
make
make install
echo "export PATH=\"\$HOME/Python27/bin:\$PATH\"" >> ~/.bashrc
echo "export PATH=\"\$HOME/Python27/bin:\$PATH\"" >> ~/.bash_profile
source ~/.bashrc
cd ~/tmp
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
easy_install pip
# Virtualenv
pip install virtualenv
virtualenv $HOME/$site/env
source $HOME/$site/env/bin/activate
export PATH="$HOME/$site/env/bin/:$PATH"
source ~/.bashrc
["python","dreamhost","2.7"]
http://pastebin.com/tPwMMAw6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment