Install Python 2.7.11

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.