0

我喜欢 ipython,我现在正在学习 python 来代替 R 进行数据分析。但是在提示时我收到以下消息:

$ ipython --qtconsole
Traceback (most recent call last):
  File "/Library/Frameworks/EPD64.framework/Versions/Current/bin/ipython", line 5, in <module>
    from IPython.frontend.terminal.ipapp import launch_new_instance
  File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/IPython/__init__.py", line 46, in <module>
    from .frontend.terminal.embed import embed
  File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/IPython/frontend/terminal/embed.py", line 39, in <module>
    from IPython.frontend.terminal.interactiveshell import TerminalInteractiveShell
  File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/IPython/frontend/terminal/interactiveshell.py", line 33, in <module>
    from IPython.core.interactiveshell import InteractiveShell, InteractiveShellABC
  File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 44, in <module>
    from IPython.core import prefilter
  File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/IPython/core/prefilter.py", line 48, in <module>
    from IPython.utils.traitlets import (
ImportError: cannot import name CRegExp

Ipython 一周前工作得很好,现在我得到了这个错误。任何人都可以提出可能导致这种情况的原因吗?

4

1 回答 1

3

正如@favoretti 提到的,这是utils.traitlets.

我建议升级到 EPD 7.3,看看是否能解决问题。我觉得不好建议“在地毯下刷它”解决方案,但如果你刚开始使用 python 钻研 IPython 的内部可能会有点头疼。

于 2012-12-28T12:45:03.790 回答