python - 是否可以在 OS X 下的 Python 的 raw_input 中使用 readline 而不是 libedit?

标签 python macos readline

来自 the readline module documentation ,它提到:

On MacOS X the readline module can be implemented using the libedit library instead of GNU readline. The configuration file for libedit is different from that of GNU readline.

是否可以使用 /usr/lib/libreadline.dylib 中的 readline 库,甚至可以使用 MacPorts 或 Homebrew 编译?

最佳答案

$ sudo easy_install readline

关于python - 是否可以在 OS X 下的 Python 的 raw_input 中使用 readline 而不是 libedit?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3138574/

相关文章:

python - [应该] 销毁观察者时如何在 python 中正确实现观察者

python 解析字符串以获取模式字符串

macos - 如何将数据从Docker容器获取到主机的共享文件夹中?

macos - insertNewObjectForEntityForName 找不到实体 (Swift)

javascript - 为什么我不能在 Nodejs v10 中读取 "import * as readline from ' readline'"?

python - 使用带有嵌套 while 循环的 readline 方法时出现问题 Python

python - SQLAlchemy 中跨越四个表的关系

python - 如何将超出范围的纪元转换为日期时间python?

c++ - 重新编译 libiconv,在已经成功安装后出现 gettext undefined symbol

PYTHON:交替读取 2 个文件中的行并 append 到第三个文件