macos 如何在雪豹上安装 iPython
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1437402/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install iPython on Snow Leopard
提问by Ned Deily
Does iPython work on Mac OS X 10.6.1 Snow Leopard? I'm python noob, how can I install iPython on my Mac? Links? suggestions?
iPython 可以在 Mac OS X 10.6.1 Snow Leopard 上运行吗?我是 python noob,如何在我的 Mac 上安装 iPython?链接?建议?
Thanks
谢谢
回答by Ned Deily
To install with the Apple-supplied Python in 10.6:
要在 10.6 中使用 Apple 提供的 Python 进行安装:
$ sudo /usr/bin/easy_install-2.6 ipython
To use:
使用:
$ ipython
回答by cit
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....
使您能够使用制表符补全来查看模块的属性....
回答by linqu
回答by linqu
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. However, i found that there were some problems with pyreadline's installation using easy_install. The solution i've gone with involves manually extracting the python package and editing the version of gnu-readline which pyreadline tries to compile. I've posted a more in depth guide on my blog
虽然 ipython 安装并且可以使用 easy_install 运行,但我发现有一些渲染问题也只能通过安装 pyreadline 来解决。但是,我发现使用easy_install 安装pyreadline 时存在一些问题。我采用的解决方案涉及手动提取 python 包并编辑 pyreadline 尝试编译的 gnu-readline 版本。我在我的博客上发布了更深入的指南
Cheers
干杯
-- Sina
——新浪