重新编译 Python 以修复交互模式中的箭头键问题
我正在使用 python 2.6(与 CentOS 所需的 Python2.4.3 一起安装),并且我遇到了箭头键和退格键等问题。
我从源代码编译,我想解决方案是在安装 readline-devel 后重新编译,如下所述:
在 python shell 中按箭头键时看到转义字符< /a>
问题是,我安装了很多模块,担心会损坏。能够在不破坏现有模块的情况下重新编译是正常的吗?
谢谢
I am working in python 2.6 (installed alongside Python2.4.3 required for CentOS) and I am having issues with the arrow keys and backspace etc.
I compiled from source and I imagine the solution is to recompile after installing readline-devel as outlined in:
Seeing escape characters when pressing the arrow keys in python shell
Question is, I have a lot of modules installed and am worried of things breaking. Is it normal to be able to just recompile without breaking existing modules.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为,只要您使用最初使用的相同编译器,就应该没问题。特别是如果您没有任何需要重新编译的扩展,因为这些都会受到影响。
http://docs. python.org/release/2.6.5/install/index.html#building-extensions-tips-and-tricks
不过,我可能错过了一些东西,所以......
As long as you use the same compiler that was originally used, you should be fine, I think. Especially if you don't have any extensions to recompile, because those are what would be affected.
http://docs.python.org/release/2.6.5/install/index.html#building-extensions-tips-and-tricks
I might have missed something, though, so...