Skip to content

Instantly share code, notes, and snippets.

@syberkitten
Last active August 29, 2015 14:02
Show Gist options
  • Save syberkitten/29184ae2c394a62fdf59 to your computer and use it in GitHub Desktop.
Save syberkitten/29184ae2c394a62fdf59 to your computer and use it in GitHub Desktop.
Install Python 2.7.x on centOS 6.2 (which has Native 2.6.x)
add development tools:
yum groupinstall "Development tools"
more libraries:
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-deve
get python (might get other version):
wget http://python.org/ftp/python/2.7.7/Python-2.7.7.tar.xz
extract:
tar xf Python-2.7.7.tgz
go into folder:
cd Python-2.7.7
configure before installing:
./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
compile python:
make && make altinstall
download setup tools:
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
install pip:
easy_install-2.7 pip
install virtual env:
pip2.7 install virtualenv
create a virtual env:
virtualenv-2.7 yourproject
source the virtual env you created:
source myproject/bin/activate
install ab testing (apache):
yum install httpd-tools
install supervisor:
pip install supervisor
for full supervisord instructions (sentos):
http://rayed.com/wordpress/?p=1496
install virtualenv wrapper:
pip install virtualenvwrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment