-
-
Save eloycoto/9abceacffb9fea1195ea to your computer and use it in GitHub Desktop.
This file contains 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
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