Install the required packages first:
# yum install gcc gcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 zlib*.x86_64
Download and install python-2.7 from source:
$ wget http://www.python.org/ftp/pyth on/2.7.2/Python-2.7.2.tgz
$ tar -xvzf Python-2.7.2.tgz
$ cd Python-2.7.2
$ ./configure --with-threads --enable-shared
$ make
# make install
Link the shared library:
# echo "/usr/local/lib" >>/etc/ld.so.conf.d/loca l-lib.conf
# ldconfig
Verify with:
$ which python
$ python -V
Install easy_install:
$ wget http://peak.telecommunity.com/ dist/ez_setup.py
# python ez_setup.py
Install fabric via easy_install:
easy_install fabric
To get the location of site-packages for current version of python:
$ python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
- sandip's blog
- Login or register to post comments
Comments
sqlite-devel for Python-2.7.6 is another requirement.
If not installed:
yum install make