警告:Readline服务不可用或未加载.AttributeError:' module'对象没有属性' set_completer_delims'

时间:2015-04-28 08:28:39

标签: ipython readline sublimerepl

REPL运行ipython发生错误。 警告:Readline服务不可用或未加载。

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\Data\Packages/SublimeREPL/config/Python/ipy_repl.py", line 52, in <module>
    embedded_shell.initialize()
  File "<string>", line 2, in initialize
  File "D:\Python27\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "D:\Python27\lib\site-packages\IPython\terminal\ipapp.py", line 332, in initialize
    self.init_shell()
  File "D:\Python27\lib\site-packages\IPython\terminal\console\app.py", line 114, in init_shell
    client=self.kernel_client,
  File "D:\Python27\lib\site-packages\IPython\config\configurable.py", line 337, in instance
    inst = cls(*args, **kwargs)
  File "D:\Python27\lib\site-packages\IPython\core\interactiveshell.py", line 524, in __init__
    self.init_completer()
  File "D:\Python27\lib\site-packages\IPython\terminal\console\interactiveshell.py", line 129, in init_completer
    self.Completer = ZMQCompleter(self, self.client, config=self.config)
  File "D:\Python27\lib\site-packages\IPython\terminal\console\completer.py", line 37, in __init__
    self.readline.set_completer_delims('\r\n')
AttributeError: 'module' object has no attribute 'set_completer_delims'

1 个答案:

答案 0 :(得分:6)

我在WinPython发行版中运行ipython console时遇到了这个问题。在我的情况下,安装pyreadline

解决了问题
pip install pyreadline

希望这也适合你。