Created
December 4, 2012 05:01
-
-
Save tcr/4200761 to your computer and use it in GitHub Desktop.
How do you install Python 2.7 on Dreamhost?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://pastebin.com/tPwMMAw6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment