IPython是基于python开发的工具,在rhel或fedora下安装直接使用yum install实现即可,Ubuntu也可以直接使用apt-get install ipython。
下面是fedora下安装过程,:)
bash-4.1$ ipython
bash: ipython: command not found
bash-4.1$ yum list | grep ipython
ipython.noarch 0.10-8.fc14 fedora16-releases
ipython-doc.noarch 0.10-8.fc14 fedora16-releases
ipython-gui.noarch 0.10-8.fc14 fedora16-releases
ipython-tests.noarch 0.10-8.fc14 fedora16-releases
bash-4.1$ yum install ipython.noarch
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
You need to be root to perform this command.
bash-4.1$ sudo yum install ipython.noarch
[sudo] password for xifei:
Sorry, try again.
[sudo] password for xifei:
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
fedora16-releases | 4.3 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ipython.noarch 0:0.10-8.fc14 set to be installed
--> Processing Dependency: python-twisted-core for package: ipython-0.10-8.fc14.noarch
--> Processing Dependency: python-foolscap for package: ipython-0.10-8.fc14.noarch
--> Processing Dependency: python-mglob for package: ipython-0.10-8.fc14.noarch
--> Processing Dependency: python-pretty for package: ipython-0.10-8.fc14.noarch
--> Processing Dependency: pexpect for package: ipython-0.10-8.fc14.noarch
--> Running transaction check
---> Package pexpect.noarch 0:2.3-5.fc14 set to be installed
---> Package python-foolscap.noarch 0:0.5.1-2.fc14 set to be installed
--> Processing Dependency: python-twisted-web for package: python-foolscap-0.5.1-2.fc14.noarch
---> Package python-mglob.noarch 0:0.4-2.fc14 set to be installed
---> Package python-pretty.noarch 0:0.1-2.fc14 set to be installed
---> Package python-twisted-core.i686 0:10.1.0-3.fc14 set to be installed
--> Processing Dependency: pyserial for package: python-twisted-core-10.1.0-3.fc14.i686
--> Running transaction check
---> Package pyserial.noarch 0:2.4-2.fc14 set to be installed
---> Package python-twisted-web.i686 0:10.1.0-1.fc14 set to be installed
--> Processing Dependency: SOAPpy for package: python-twisted-web-10.1.0-1.fc14.i686
--> Running transaction check
---> Package SOAPpy.noarch 0:0.11.6-11.fc14 set to be installed
--> Processing Dependency: PyXML >= 0.8.3 for package: SOAPpy-0.11.6-11.fc14.noarch
--> Processing Dependency: python-fpconst >= 0.6.0 for package: SOAPpy-0.11.6-11.fc14.noarch
--> Running transaction check
---> Package PyXML.i686 0:0.8.4-25.fc14 set to be installed
---> Package python-fpconst.noarch 0:0.7.3-7.fc14 set to be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================
Package Arch Version Repository Size
================================================================================================
Installing:
ipython noarch 0.10-8.fc14 fedora16-releases 1.0 M
Installing for dependencies:
PyXML i686 0.8.4-25.fc14 fedora16-releases 894 k
SOAPpy noarch 0.11.6-11.fc14 fedora16-releases 207 k
pexpect noarch 2.3-5.fc14 fedora16-releases 147 k
pyserial noarch 2.4-2.fc14 fedora16-releases 64 k
python-foolscap noarch 0.5.1-2.fc14 fedora16-releases 742 k
python-fpconst noarch 0.7.3-7.fc14 fedora16-releases 16 k
python-mglob noarch 0.4-2.fc14 fedora16-releases 9.6 k
python-pretty noarch 0.1-2.fc14 fedora16-releases 14 k
python-twisted-core i686 10.1.0-3.fc14 fedora16-releases 2.2 M
python-twisted-web i686 10.1.0-1.fc14 fedora16-releases 639 k
Transaction Summary
================================================================================================
Install 11 Package(s)
Total download size: 5.9 M
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 5.9 M
(1/11): PyXML-0.8.4-25.fc14.i686.rpm | 894 kB 00:02
(2/11): SOAPpy-0.11.6-11.fc14.noarch.rpm | 207 kB 00:00
(3/11): ipython-0.10-8.fc14.noarch.rpm | 1.0 MB 00:00
(4/11): pexpect-2.3-5.fc14.noarch.rpm | 147 kB 00:00
(5/11): pyserial-2.4-2.fc14.noarch.rpm | 64 kB 00:00
(6/11): python-foolscap-0.5.1-2.fc14.noarch.rpm | 742 kB 00:00
(7/11): python-fpconst-0.7.3-7.fc14.noarch.rpm | 16 kB 00:00
(8/11): python-mglob-0.4-2.fc14.noarch.rpm | 9.6 kB 00:00
(9/11): python-pretty-0.1-2.fc14.noarch.rpm | 14 kB 00:00
(10/11): python-twisted-core-10.1.0-3.fc14.i686.rpm | 2.2 MB 00:01
(11/11): python-twisted-web-10.1.0-1.fc14.i686.rpm | 639 kB 00:00
------------------------------------------------------------------------------------------------
Total 855 kB/s | 5.9 MB 00:07
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : pyserial-2.4-2.fc14.noarch 1/11
Installing : pexpect-2.3-5.fc14.noarch 2/11
Installing : python-pretty-0.1-2.fc14.noarch 3/11
Installing : python-mglob-0.4-2.fc14.noarch 4/11
Installing : python-fpconst-0.7.3-7.fc14.noarch 5/11
Installing : python-twisted-core-10.1.0-3.fc14.i686 6/11
Installing : PyXML-0.8.4-25.fc14.i686 7/11
Installing : SOAPpy-0.11.6-11.fc14.noarch 8/11
Installing : python-twisted-web-10.1.0-1.fc14.i686 9/11
Installing : python-foolscap-0.5.1-2.fc14.noarch 10/11
Installing : ipython-0.10-8.fc14.noarch 11/11
Unable to send message to PackageKit
Installed:
ipython.noarch 0:0.10-8.fc14
Dependency Installed:
PyXML.i686 0:0.8.4-25.fc14 SOAPpy.noarch 0:0.11.6-11.fc14
pexpect.noarch 0:2.3-5.fc14 pyserial.noarch 0:2.4-2.fc14
python-foolscap.noarch 0:0.5.1-2.fc14 python-fpconst.noarch 0:0.7.3-7.fc14
python-mglob.noarch 0:0.4-2.fc14 python-pretty.noarch 0:0.1-2.fc14
python-twisted-core.i686 0:10.1.0-3.fc14 python-twisted-web.i686 0:10.1.0-1.fc14
Complete!
bash-4.1$ ipython
**********************************************************************
Welcome to IPython. I will try to create a personal configuration directory
where you can customize many aspects of IPython's functionality in:
/home/lixiaoou/.ipython
Initializing from configuration: /usr/lib/python2.7/site-packages/IPython/UserConfig
Successful installation!
Please read the sections 'Initial Configuration' and 'Quick Tips' in the
IPython manual (there are both HTML and PDF versions supplied with the
distribution) to make sure that your system environment is properly configured
to take advantage of IPython's features.
Important note: the configuration system has changed! The old system is
still in place, but its setting may be partly overridden by the settings in
"~/.ipython/ipy_user_conf.py" config file. Please take a look at the file
if some of the new settings bother you.
Please press <RETURN> to start IPython.
**********************************************************************
Python 2.7 (r27:82500, Sep 16 2010, 18:03:06)
Type "copyright", "credits" or "license" for more information.
IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: