Created
June 4, 2014 18:52
-
-
Save anonymous/0e772bead667500051ae to your computer and use it in GitHub Desktop.
Centos 5 install python2.7
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
#!/bin/bash | |
yum groupinstall "Development tools" | |
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel | |
# Python 2.7.6: | |
cd ~ | |
wget http://python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz | |
tar xf Python-2.7.6.tar.xz | |
cd Python-2.7.6 | |
./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" | |
make && make altinstall | |
# Download and install Setuptools + pip | |
cd ~ | |
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | |
python2.7 ez_setup.py | |
python3.3 ez_setup.py | |
easy_install-2.7 pip | |
easy_install-3.3 pip | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment