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