Rehat 6.5 Installation python2.7.11 (2.6 already exists in the system)
wget HTTPS://WWW.PYTHON.ORG/FTP/PYTHON/2.7.11/PYTHON-2.7.11.TAR.XZ
tar [J]XVF python-2.7.11.tar.xz
CD Python-2.7.11
./configure--prefix=/usr/--enable-shared--with-system-expat--with-system-ffi--enable-unicode=ucs4 && Make && make install
echo $?
Chmod-v 755/usr/lib/libpython2.7.so.1.0
Vim/etc/ld.so.conf
Add Include/usr/lib
/sbin/ldconfig
/sbin/ldconfig-v
Python
--with-system-expat:this switch enables linking against system version of expat.
--with-system-ffi:this switch enables linking against system version of Libffi. Remove If you had not installed libffi-3.2.1.
--enable-unicode=ucs4:this switch enables 32bit Unicode support in Python.
When Python is required to compile, a dynamic link library is added--enable-shared
Put the tab.py in the/usr/lib/python2.7/site-packages/
Install Python 2.7.11