Installation steps for Python environment package in Linux

Source: Internet
Author: User
Brief introduction:

Take a look at some of the installation steps for the Python environment package

1. Upgrade Python to 2.7.10 (default 2.6.6)

Shell > Yum-y Install epel-releaseshell > yum-y install gcc wget readline-devel zlib-devel openssl-develshell > wget Https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgzshell > Tar zxf python-2.7.10.tgzshell > CD Python-2.7.10;./configure--prefix=/usr/local/python2.7; make; Make Installshell > Mv/usr/bin/python/usr/bin/old_pythonshell > Ln-s/usr/local/python2.7/bin/python/usr/bin/ Pythonshell > Sed-i ' 1s/python/old_python/'/usr/bin/yumshell > Python-vpython 2.7.10

# # This is the implementation of the Python upgrade
# # Readline-devel This package to be installed beforehand, or the back of the Ipython does not support tab, arrow keys, etc., but also to recompile python
# # Zlib-devel This package setuptools will be used, openssl-devel this package pip will use
# #/usr/bin/yum file interpreter to change it or not to use Yum

2, Installation Setuptools

Shell > Wget https://pypi.python.org/packages/source/s/setuptools/setuptools-15.2.tar.gz#md5= A9028a9794fc7ae02320d32e2d7e12eeshell > Tar zxf setuptools-15.2.tar.gzshell > CD setuptools-15.2; Python setup.py installshell > Ln-s/usr/local/python2.7/bin/easy_install/usr/bin/easy_install

# # So Setuptools is also installed, if you do not install this package directly download PIP source package installation may be an error that can not find Setuptools

3. Install Pip

Shell > Wget https://pypi.python.org/packages/source/p/pip/pip-6.1.1.tar.gz#md5= 6b19e0a934d982a5a4b798e957cb6d45shell > Tar zxf pip-6.1.1.tar.gzshell > CD pip-6.1.1; Python setup.py installshell > Ln-s/usr/local/python2.7/bin/pip/usr/bin/pip

# # So PIP also installed, of course, with Easy_install can directly easy_install Pip, source code is just another way to install

4, Installation Ipython

Shell > Wget https://pypi.python.org/packages/source/i/ipython/ipython-3.1.0.tar.gz#md5= A749d90c16068687b0ec45a27e72ef8fshell > Tar zxf ipython-3.1.0.tar.gzshell > CD ipython-3.1.0; Python setup.py installshell > Ln-s/usr/local/python2.7/bin/ipython/usr/bin/ipython

# # So Ipython also installed, can also be installed by Pip install Ipython fast

  • 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.