警告:检索线服务不可用或未加载。属性错误:'module'对象没有属性'set_completer_delims'



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

Traceback (most recent call last):
  File "C:Program FilesSublime Text 3DataPackages/SublimeREPL/config/Python/ipy_repl.py", line 52, in <module>
    embedded_shell.initialize()
  File "<string>", line 2, in initialize
  File "D:Python27libsite-packagesIPythonconfigapplication.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "D:Python27libsite-packagesIPythonterminalipapp.py", line 332, in initialize
    self.init_shell()
  File "D:Python27libsite-packagesIPythonterminalconsoleapp.py", line 114, in init_shell
    client=self.kernel_client,
  File "D:Python27libsite-packagesIPythonconfigconfigurable.py", line 337, in instance
    inst = cls(*args, **kwargs)
  File "D:Python27libsite-packagesIPythoncoreinteractiveshell.py", line 524, in __init__
    self.init_completer()
  File "D:Python27libsite-packagesIPythonterminalconsoleinteractiveshell.py", line 129, in init_completer
    self.Completer = ZMQCompleter(self, self.client, config=self.config)
  File "D:Python27libsite-packagesIPythonterminalconsolecompleter.py", line 37, in __init__
    self.readline.set_completer_delims('rn')
AttributeError: 'module' object has no attribute 'set_completer_delims'

我在WinPython发行版中运行ipython console时遇到了这个问题。就我而言,问题已通过安装pyreadline来解决:

pip install pyreadline

希望这也对你有用。

最新更新