iPython 前端和内核版本不兼容

iPython 前端和内核版本不兼容

我刚刚将操作系统从 14.10 升级到 15.04。带有 iPython 的 Spyder(Python 3.4) 在 14.10 中运行良好。但是,升级后,iPython 控制台无法启动。

我正在使用的python版本是3.4。 我在安装了virtualenv和virtualenvwrapper的虚拟环境中工作。

如果你们能告诉我如何解决这个问题,我将不胜感激。如果需要更多详细信息,请告诉我。

同时,以下内容可能会促进故障排除过程,我希望它会有所帮助。

Spyder Internal Console

This console is used to report application
internal errors and to inspect Spyder
internals with the following commands:
  spy.app, spy.window, dir(spy)

Please don't use it to run your code

>>> Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/spyderlib/plugins/ipythonconsole.py", line 790, in run_script_in_current_client
    self.execute_python_code(line)
  File "/usr/lib/python3/dist-packages/spyderlib/plugins/ipythonconsole.py", line 803, in execute_python_code
    client.shellwidget.execute(to_text_string(lines))
  File "/usr/lib/python3/dist-packages/IPython/qt/console/history_console_widget.py", line 46, in execute
    source, hidden, interactive)
  File "/usr/lib/python3/dist-packages/IPython/qt/console/console_widget.py", line 655, in execute
    self._execute(source, hidden)
  File "/usr/lib/python3/dist-packages/IPython/qt/console/frontend_widget.py", line 243, in _execute
    msg_id = self.kernel_client.execute(source, hidden)
AttributeError: 'NoneType' object has no attribute 'execute'

相关内容