Skip to content

Instantly share code, notes, and snippets.

@eloycoto
Created April 29, 2014 06:20
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 eloycoto/9abceacffb9fea1195ea to your computer and use it in GitHub Desktop.
Save eloycoto/9abceacffb9fea1195ea to your computer and use it in GitHub Desktop.
cd /usr/src/
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel compat-db db4 db4-devel unixODBC-devel libtool-ltdl-devel
#Install python
wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
tar xfvz Python-2.7.6.tgz
cd Python-2.7.6
./configure --prefix="/opt/python27/"
make
make install
#Install setuptools
cd /usr/src/
https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.4.tar.gz
tar xfvz setuptools-1.1.4.tar.gz
cd setuptools-1.1.4
/opt/python27/bin/python setup.py install
#Install pip
/opt/python27/bin/easy_install pip
#virtualenv
mkvirtualenv -p /opt/python27/bin/python p_27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment