python-Environment Preparation Python,ipython

Source: Internet
Author: User
Tags iplogger

Python-2.7.6 and ipython-1.2.1 compilation installation

[[email protected] ~]# ls
Anaconda-ks.cfg Documents install.log ipython-1.2.1.tar.gz Pictures Python-2.7.6 Templates
Desktop Downloads install.log.syslog Music public python-2.7.6.tar.xz Videos
[Email protected] ~]#


[Email protected] python-2.7.6]#/usr/local/python27/bin/python2.7
Python 2.7.6 (Default, Mar 26 2017, 17:50:22)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.
>>> exit () (exit)


Install ipython-1.2.1 (Python module) with Python compilation

[Email protected] ipython-1.2.1]#/usr/local/python27/bin/python2.7 setup.py Build

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

[Email protected] ipython-1.2.1]# ls/usr/local/python27/bin/
2to3 ipcluster ipengine iptest irunner pydoc python2 python2.7-config python-config
Idle Ipcontroller iplogger ipython pycolor python python2.7 python2-config smtpd.py
[Email protected] ipython-1.2.1]#


Copy Link to/usr/bin

[Email protected] ipython-1.2.1]# ls/usr/local/python27/bin/
2to3 ipcluster ipengine iptest irunner pydoc python2 python2.7-config python-config
Idle Ipcontroller iplogger ipython pycolor python python2.7 python2-config smtpd.py
[Email protected] ipython-1.2.1]# Ln-sv/usr/local/python27/bin/python2.7/usr/bin/python
ln:creating Symbolic Link '/usr/bin/python ': File exists
[Email protected] ipython-1.2.1]# ln-sv/usr/local/python27/bin/python2.7/usr/bin/python27
'/usr/bin/python27 ', '/usr/local/python27/bin/python2.7 '
[Email protected] ipython-1.2.1]# ln-sv/usr/local/python27/bin/ipython/usr/bin/
'/usr/bin/ipython ', '/usr/local/python27/bin/ipython '
[Email protected] ipython-1.2.1]# Ipython
Warning:ipython requires SQLite, your history won't be saved
Warning:readline services not available or not loaded.
Warning:the auto-indent feature requires the ReadLine library
Python 2.7.6 (Default, Mar 26 2017, 17:50:22)
Type "Copyright", "credits" or "license" for more information.


IPython 1.2.1--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]: print "Hello World"
Hello World


In [2]: Import platform


In [3]: print platform. (Cannot use tab completion)



Ipython Environment Press TAB key, delete key

Need to install Pyreadline




python-Environment Preparation Python,ipython

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.