来自 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/