[英]How to install iPython on Snow Leopard
Does iPython work on Mac OS X 10.6.1 Snow Leopard? iPython适用于Mac OS X 10.6.1 Snow Leopard吗? I'm python noob, how can I install iPython on my Mac? 我是python noob,如何在我的Mac上安装iPython? Links? 链接? suggestions? 建议?
Thanks 谢谢
To install with the Apple-supplied Python in 10.6: 要使用Apple提供的Python在10.6中安装:
$ sudo /usr/bin/easy_install-2.6 ipython
To use: 使用:
$ ipython
I may add that running 我可以添加运行
$ sudo /usr/bin/easy_install-2.6 readline ipython
gives you the ability to use tab completion to see the attributes of a module.... 使您能够使用选项卡完成来查看模块的属性....
Though ipython installs and is runnable using easy_install, I found that there were some rendering problems which could only be solved by installing pyreadline as well. 虽然ipython安装并且可以使用easy_install运行,但我发现有一些渲染问题只能通过安装pyreadline来解决。 However, i found that there were some problems with pyreadline's installation using easy_install. 但是,我发现使用easy_install安装pyreadline时遇到了一些问题。 The solution i've gone with involves manually extracting the python package and editing the version of gnu-readline which pyreadline tries to compile. 我已经解决的解决方案涉及手动提取python包并编辑pyreadline尝试编译的gnu-readline版本。 I've posted a more in depth guide on my blog 我在我的博客上发布了更深入的指南
Cheers 干杯
-- Sina - 新浪
与其他python扩展一样, pip使它非常简单:
sudo pip install ipython
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.