linux下安装IPython

IPython是基于python开发的工具,在rhel或fedora下安装直接使用yum install实现即可,Ubuntu也可以直接使用apt-get install ipython。

下面是fedora下安装过程,:)

bash-4.1$ ipython

bash: ipython: command not foundbash-4.1$ yum list | grep ipythonipython.noarch 0.10-8.fc14 fedora16-releasesipython-doc.noarch 0.10-8.fc14 fedora16-releasesipython-gui.noarch 0.10-8.fc14 fedora16-releasesipython-tests.noarch 0.10-8.fc14 fedora16-releasesbash-4.1$ yum install ipython.noarchLoaded plugins: langpacks, presto, refresh-packagekitAdding en_US to language listYou 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-packagekitAdding en_US to language listfedora16-releases | 4.3 kB 00:00 Setting up Install ProcessResolving 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 ResolutionDependencies Resolved================================================================================================Package Arch Version Repository Size================================================================================================Installing:ipython noarch 0.10-8.fc14 fedora16-releases 1.0 MInstalling for dependencies:PyXML i686 0.8.4-25.fc14 fedora16-releases 894 kSOAPpy noarch 0.11.6-11.fc14 fedora16-releases 207 kpexpect noarch 2.3-5.fc14 fedora16-releases 147 kpyserial noarch 2.4-2.fc14 fedora16-releases 64 kpython-foolscap noarch 0.5.1-2.fc14 fedora16-releases 742 kpython-fpconst noarch 0.7.3-7.fc14 fedora16-releases 16 kpython-mglob noarch 0.4-2.fc14 fedora16-releases 9.6 kpython-pretty noarch 0.1-2.fc14 fedora16-releases 14 kpython-twisted-core i686 10.1.0-3.fc14 fedora16-releases 2.2 Mpython-twisted-web i686 10.1.0-1.fc14 fedora16-releases 639 kTransaction Summary================================================================================================Install 11 Package(s)Total download size: 5.9 MInstalled size: 27 MIs this ok [y/N]: yDownloading Packages:Setting up and reading Presto delta metadataProcessing delta metadataPackage(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_debugRunning Transaction TestTransaction Test SucceededRunning 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/11Unable to send message to PackageKitInstalled: 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 directorywhere you can customize many aspects of IPython’s functionality in:/home/lixiaoou/.ipythonInitializing from configuration: /usr/lib/python2.7/site-packages/IPython/UserConfigSuccessful installation!Please read the divs ‘Initial Configuration’ and ‘Quick Tips’ in theIPython manual (there are both HTML and PDF versions supplied with thedistribution) to make sure that your system environment is properly configuredto take advantage of IPython’s features.Important note: the configuration system has changed! The old system isstill 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 fileif 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]:

未曾失败的人恐怕也未曾成功过。

linux下安装IPython

相关文章:

你感兴趣的文章:

标签云: