Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 cqlsh 中键入命令时,几乎所有键都没有转义。例如,箭头键产生:
cqlsh> ^[[C^[[C^[[D^[[D^[[C^[[C^[[D^[[D
逃生产生:
cqlsh> ^[^[^[^[^[
等等
我做了一些挖掘,有人说这是因为没有安装python'readline'包(cqlsh实际上是一个python shell),但是在pip安装readline之后,仍然打印了转义字符。
有谁知道如何解决这一问题?
原来问题出在pyenv上。解决方案是brew update && brew upgrade,然后卸载/安装使用 pyenv 安装的所有 python 版本。
brew update && brew upgrade