How to compile ipython instance in CentOS 6.2

Source: Internet
Author: User
Tags readline centos

 

The code is as follows: Copy code
[Root @ chenyi unix-python] # tar jxf Python-2.7.2.tar.bz2
[Root @ chenyi unix-python] # cd Python-2.7.2
[Root @ chenyi Python-2.7.2] #./configure -- prefix =/software/python
[Root @ chenyi Python-2.7.2] # make & make install
[Root @ chenyi Python-2.7.2] # PATH = $ PATH:/software/python/bin/
[Root @ chenyi Python-2.7.2] # python
Python 2.7.2 (default, Mar 2 2013, 01:05:44)
[GCC 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

 

[Root @ chenyi unix-python] # tar zxf ipython-0.11.tar.gz
[Root @ chenyi unix-python] # ipython-0.11 cd
[Root @ chenyi ipython-0.11] # python setup. py install
[Root @ chenyi ipython-0.11] # ipython
WARNING: Readline services not available or not loaded.
WARNING: The auto-indent feature requires the readline library
Python 2.7.2 (default, Mar 2 2013, 01:18:06)
Type "copyright", "credits" or "license" for more information.

The code is as follows: Copy code

IPython 0.11 -- 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]:

If ImportError: No module named _ sqlite3 appears, you need to delete the previously installed python, then install sqlite-devel, and then re-compile python, then you can install ipython

Related Article

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.