Installing Ipython and perfecting Ipython and other functions

Source: Internet
Author: User

Installing Ipython

Downloads: ipython-2.3.0.tar.gz and activepython-2.7.8.10-linux-x86_64.tar.gz and readline-6.2.4.1.tar.gz

Install Python2.7:

Tar zxvf activepython-2.7.8.10-linux-x86_64.tar.gz

CD activepython-2.7.8.10-linux-x86_64

./install.sh

Ln-s/opt/activepython-2.7/bin/*/usr/local/bin

Install Ipython:

Tar zxvf ipython-2.3.0.tar.gz

CD ipython-2.3.0

python2.7 setup.py Install

Verify:

[Email protected] ~]# Ipython

Python 2.7.8 (Default, Jul 2 2014, 22:10:09)

Type "Copyright", "credits" or "license" for more information.


IPython 2.3.0--an enhanced Interactive Python.

? Introduction and overview of IPython ' s features.

%quickref, Quick Reference.

Help, Python ' s own Help system.

Object? Details about ' object ', use ' object? ' for extra details.


In [1]:


Note: The Ipython does not have tab functions at this time, and the ReadLine module must be added.

Install ReadLine:

Tar zxvf readline-6.2.4.1.tar.gz

CD readline-6.2.4.1

python2.7 setup.py Install

===========error===================

The above slightly ....

gcc-pthread-shared BUILD/TEMP.LINUX-I686-2.5/MODULES/2.X/READLINE.O Readline/libreadline.a readline/libhistory.a- Lncurses-o build/lib.linux-i686-2.5/readline.so

/usr/bin/ld:cannot find-lncurses

Collect2:ld returned 1 exit status

Error:command ' gcc ' failed with exit status 1

===========end error===============


Find the original is missing ncurses library, no way, continue to install ncurses

[email protected] ~]# Yum install ncurses*

[[Email protected] ~] #python2.7 setup.py Install # #完成安装

====================ok================================

Adding readline 6.1.0 to easy-install.pth file

Installed/usr/local/lib/python2.5/site-packages/readline-6.1.0-py2.5-linux-i686.egg

Processing dependencies for readline==6.1.0

Finished processing dependencies for readline==6.1.0

=====================end ok============================


[Email protected] ~]# Ipython # #验证安装成功

Python 2.7.8 (Default, Jul 2 2014, 22:10:09)

Type "Copyright", "credits" or "license" for more information.


IPython 2.3.0--an enhanced Interactive Python.

? Introduction and overview of IPython ' s features.

%quickref, Quick Reference.

Help, Python ' s own Help system.

Object? Details about ' object ', use ' object? ' for extra details.


In [1]: Import su # #tab补齐

Subprocess Sunau Sunaudio


Next Ipython will be able to play well with us!!


This article is from the blog, "to learn the good system to work smoothly", please keep this source http://stlong.blog.51cto.com/5144113/1575085

Installing Ipython and perfecting Ipython and other functions

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.