Linux under compilation installation python2.7.6

Source: Internet
Author: User

Installing dependent development Packages

Yum Install Readline-devel

Yum Install *argparse*

wget https://www.python.org/ftp/python/2.7.6/Python2.7.6.tgz

Ipython https://github.com/ipython/ipython/releases/download/rel-2.1.0/ipython-2.1.0.tar.gz

Compiling and installing Python 2.7.6

[Email protected] ~]# TAR-XF python-2.7.6.tgz

[Email protected] python-2.7.6]#/configure--prefix=/usr/local/python2.7

[[email protected] python-2.7.6]# make && make install

Installing the Ipython plug-in

[Email protected] ~]# TAR-XF ipython-5.2.2.tar.gz

[Email protected] ~]# CD ipython-5.2.2

[Email protected] ipython-5.2.2]#/usr/local/python2.7/bin/python2.7 setup.py Install


Creating a soft connection

[Email protected] ~]# ln-sv/usr/local/python27/bin/python2.7/usr/bin/python27

[Email protected] ~]# ln-sv/usr/local/python27/bin/ipython/usr/bin/



Error 1,

[email protected] bin]#/usr/local/python2.7/bin/ipython

Traceback (most recent):

File "/usr/local/python2.7/bin/ipython", line 4, <module>

From IPython import Start_ipython

File "/usr/local/python2.7/lib/python2.7/site-packages/ipython/__init__.py", line-in <module>

From. Core.application Import Application

File "/usr/local/python2.7/lib/python2.7/site-packages/ipython/core/application.py", line at <module>

From traitlets.config.application import application, Catch_config_error

Importerror:no module named Traitlets.config.application

First Yum install *argparse* and then recompile installation python


This article is from the "Ming Fei Growth Station" blog, please be sure to keep this source http://anyue007.blog.51cto.com/3113658/1901002

Linux under compilation installation python2.7.6

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.