pip 在 OSX Lion 上使用 readline 安装 ipython
要使 ipython 在 OSX Lion 上完全发挥作用,需要什么?我试图让 ipython 与 readline 一起工作但没有成功。
我的方法:(
在虚拟环境中)
pip install ipython #运行,但只有一点用处,因为无法缩进块
pip install readline
第二个完成时出现警告,并最终显示“成功安装 readline” 但我仍然无法缩进块,并且返回命令历史记录会导致终端输出出现乱码。
我怀疑这些警告很重要,但我不知道该如何处理它们。
ld:警告:忽略文件 readline/libreadline.a,该文件是为存档而构建的,该存档不是正在链接的体系结构(i386)
ld:警告:忽略文件 readline/libhistory.a,文件是为存档而构建的,这不是正在链接的架构(i386)
(我花了一个早上谷歌搜索错误,但无济于事)
tia,
What is required to get ipython fully functional on OSX Lion? I'm trying to get ipython with readline working and having no success.
My approach:
(inside a virtual environment)
pip install ipython # runs, but only slightly useful because can't indent blocks
pip install readline
The second completes with warnings and eventually says "Successfully installed readline"
But I'm still left without the ability to indent blocks and going back in the command history leads to garbled terminal output.
I suspect these warnings are critical, but I'm at a loss about what to do about them.
ld: warning: ignoring file readline/libreadline.a, file was built for archive which is not the architecture being linked (i386)
ld: warning: ignoring file readline/libhistory.a, file was built for archive which is not the architecture being linked (i386)
(I've spent the morning googling the errors, to no avail)
tia,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了同样的问题,由于某种原因,只有通过
easy_install readline
安装的 readline 版本才能正常工作。I've had the same issue and for some reason only the version of readline installed via
easy_install readline
works fine.1) 升级到最新的 Mac OS X 开发工具
2) 安装 分发
3) pip install ipython
4) pip安装 readline
感谢 这篇文章。
1) Upgraded to latest Mac OS X dev tools
2) Installed Distribute
3) pip install ipython
4) pip install readline
Thanks to this article.