IPython_logo

使用 IPython 真的很让人着迷,我决定把家里的 iMac 也安装上 IPython 以便于我进一步的学习。在 Mac OS X 下安装 IPython 则是件很简单的事,使用 easy_install 命令即可。值得说明的是,由于 Mac OS X Snow Leopard 更改了 GNU Lisence,所以在 Mac OS X 下安装 IPython 还单独需要 readline 功能,不过在 setuptools 工具面前一切都那么简单。直接在 Mac 的命令行下执行如下命令即可,具体过程如下:

chenjunlu@mac:~ > easy_install-2.6 readline ipython
Searching for readline
Reading http://pypi.python.org/simple/readline/
Reading http://github.com/ludwigschwardt/python-readline
Reading http://www.python.org/
Best match: readline 6.2.1
Downloading http://pypi.python.org/packages/2.6/r/readline/readline-6.2.1-py2.6-macosx-10.6-universal.egg#md5=ede81e48d1d5a0b889fe75a240833f47
Processing readline-6.2.1-py2.6-macosx-10.6-universal.egg
creating /Library/Python/2.6/site-packages/readline-6.2.1-py2.6-macosx-10.6-universal.egg
Extracting readline-6.2.1-py2.6-macosx-10.6-universal.egg to /Library/Python/2.6/site-packages
Adding readline 6.2.1 to easy-install.pth file

Installed /Library/Python/2.6/site-packages/readline-6.2.1-py2.6-macosx-10.6-universal.egg
Processing dependencies for readline
Finished processing dependencies for readline
Searching for ipython
Reading http://pypi.python.org/simple/ipython/
Reading http://ipython.scipy.org
Reading http://ipython.scipy.org/dist
Reading http://ipython.scipy.org/dist/0.10
Reading http://ipython.scipy.org/dist/0.9.1
Reading http://ipython.scipy.org/dist/0.8.4
Reading http://ipython.org
Reading http://archive.ipython.org/release/0.11/
Reading http://ipython.scipy.org/dist/old/0.9
Best match: ipython 0.11
Downloading http://archive.ipython.org/release/0.11/ipython-0.11-py2.6.egg
Processing ipython-0.11-py2.6.egg
creating /Library/Python/2.6/site-packages/ipython-0.11-py2.6.egg
Extracting ipython-0.11-py2.6.egg to /Library/Python/2.6/site-packages
Adding ipython 0.11 to easy-install.pth file
Installing ipcontroller script to /usr/local/bin
error: /usr/local: Permission denied
chenjunlu@mac:~ > sudo easy_install-2.6 readline ipython
Searching for readline
Best match: readline 6.2.1
Processing readline-6.2.1-py2.6-macosx-10.6-universal.egg
readline 6.2.1 is already the active version in easy-install.pth

Using /Library/Python/2.6/site-packages/readline-6.2.1-py2.6-macosx-10.6-universal.egg
Processing dependencies for readline
Finished processing dependencies for readline
Searching for ipython
Best match: ipython 0.11
Processing ipython-0.11-py2.6.egg
ipython 0.11 is already the active version in easy-install.pth
Installing ipcontroller script to /usr/local/bin
Installing iptest script to /usr/local/bin
Installing ipcluster script to /usr/local/bin
Installing ipython script to /usr/local/bin
Installing pycolor script to /usr/local/bin
Installing iplogger script to /usr/local/bin
Installing irunner script to /usr/local/bin
Installing ipengine script to /usr/local/bin
Installing ipython-qtconsole script to /usr/local/bin

Using /Library/Python/2.6/site-packages/ipython-0.11-py2.6.egg
Processing dependencies for ipython
Finished processing dependencies for ipython
chenjunlu@mac:~ >

相关日志:

Tagged with:
 

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*


*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

使用腾讯微博登陆

Looking for something?

Use the form below to search the site:


Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...