我最近尝试在spyder中从IPython控制台切换到python控制台,但无法取回IPython控制台。
我尝试卸载并安装spyder
和ipython
,但它没有改变任何内容。打字:
import IPython
IPython.start_ipython()
也没有改变任何东西。我有这个错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/IPython/__init__.py", line 45, in <module>
from .config.loader import Config
File "/usr/lib/python2.7/dist-packages/IPython/config/__init__.py", line 16, in <module>
from .application import *
File "/usr/lib/python2.7/dist-packages/IPython/config/application.py", line 32, in <module>
from IPython.config.configurable import SingletonConfigurable
File "/usr/lib/python2.7/dist-packages/IPython/config/configurable.py", line 34, in <module>
from IPython.utils.text import indent, wrap_paragraphs
File "/usr/lib/python2.7/dist-packages/IPython/utils/text.py", line 28, in <module>
from IPython.external.path import path
ImportError: cannot import name path
我检查了我的spyder依赖项的状态,但它没有正确检测到IPython:
IPython >=1.0 : None (NOK)
jedi >=0.8.1;<0.9.0: 0.9.0 (NOK)
matplotlib >=1.0 : 1.5.1 (OK)
pandas >=0.13.1 : 0.17.1 (OK)
pep8 >=0.6 : None (NOK)
psutil >=0.3 : 3.4.2 (OK)
pyflakes >=0.5.0 : 1.1.0 (OK)
pygments >=1.6 : 2.1 (OK)
pylint >=0.25 : 1.5.2 (OK)
rope >=0.9.2 : 0.10.2 (OK)
sphinx >=0.6.6 : 1.3.6 (OK)
zmq >=2.1.11 : 15.2.0 (OK)
我该如何解决?
非常感谢你!