IPython内核在安装新模块后重新启动

IPython内核在安装新模块后重新启动,python,ipython,Python,Ipython,在我安装了一些新的第三方模块和“笔记本”之后,我将“ipython”与“qtconsole”一起使用(它工作得非常好),它停止工作,内核不断重新启动 错误在这里: Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/IPython/kernel/__init__.py", line 10, in <

在我安装了一些新的第三方模块和“笔记本”之后,我将“ipython”与“qtconsole”一起使用(它工作得非常好),它停止工作,内核不断重新启动

错误在这里:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/IPython/kernel/__init__.py", line 10, in <module>
raise ImportError(__doc__)
ImportError: IPython.kernel has been replaced by IPython.parallel.

The previous version of IPython's parallel library was located at this
location (IPython.kernel). It has been moved to the IPython.parallel
subpackage and has been refactored to use zeromq/pyzmq instead of twisted.

Please see INSERT URL for further details.

[IPythonQtConsoleApp] WARNING | kernel restarted
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/usr/lib/python2.7/dist packages/IPython/kernel/_init__.py”,第10行,在
引发导入错误(\uuuu文档\uuuuuu)
ImportError:IPython.kernel已被IPython.parallel替换。
IPython的并行库的早期版本位于此处
位置(IPython.kernel)。它已移动到IPython.parallel
子包和已重构为使用zeromq/pyzmq而不是twisted。
有关更多详细信息,请参阅插入URL。
[IPythonQtConsoleApp]警告|内核已重新启动
如何解决此问题? 错误为“请参阅插入URL以了解更多详细信息”。在哪里可以找到此“插入URL”???
谢谢。

您已经安装了多个版本的IPython,它变得很混乱。
/usr/lib
中的版本安装了
apt
,并且是旧版本(1.0之前)

如果您可用,最短的解决方法是
apt获取remove ipython
,在您的系统上只留下一个ipython

这个问题最可能的原因是
easy\u install
,因为您说它是由安装另一个软件包引起的。当您已经使用apt安装了软件包时,easy_install可能会错误地将dist软件包添加到easy-install.pth。要检查这一点,请查看文件(如果存在):


如果有任何条目以
/usr/lib/python2.7/dist packages
开头,则应将其删除。

至少应了解您安装的导致问题的库。。。
~/.local/lib/python2.7/site-packages/easy-install.pth
/usr/local/lib/python2.7/dist-packages/easy-install.pth