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