Ipython中的CRegExp错误

Ipython中的CRegExp错误,python,ipython,Python,Ipython,我喜欢ipython,我现在正在学习python,用它代替R进行数据分析。然而,在promt,我得到了以下信息: $ ipython --qtconsole Traceback (most recent call last): File "/Library/Frameworks/EPD64.framework/Versions/Current/bin/ipython", line 5, in <module> from IPython.frontend.terminal.

我喜欢ipython,我现在正在学习python,用它代替R进行数据分析。然而,在promt,我得到了以下信息:

$ 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--qtconsole
回溯(最近一次呼叫最后一次):
文件“/Library/Frameworks/EPD64.framework/Versions/Current/bin/ipython”,第5行,在
从IPython.frontend.terminal.ipapp导入启动\新\实例
文件“/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site packages/IPython/__init__.py”,第46行,在
from.frontend.terminal.embed导入嵌入
文件“/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site packages/IPython/frontend/terminal/embed.py”,第39行,在
从IPython.frontend.terminal.interactiveshell导入TerminalInteractiveShell
文件“/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site packages/IPython/frontend/terminal/interactiveshell.py”,第33行,在
从IPython.core.interactiveshell导入interactiveshell,InteractiveShellABC
文件“/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site packages/IPython/core/interactiveshell.py”,第44行,在
从IPython.core导入预过滤器
文件“/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site packages/IPython/core/prefilter.py”,第48行,在
从IPython.utils.traitlets导入(
ImportError:无法导入名称CRegExp

Ipython一周前工作正常,现在我发现了这个错误。有人能告诉我是什么导致了这个错误吗?

正如@favoretti提到的,这是utils.traitlets中的一个重要问题


我建议升级到EPD 7.3,看看是否能解决这个问题。我觉得建议一个“地毯下刷”的解决方案很糟糕,但如果你刚开始用python深入IPython的内部,可能会有点头疼。

正如@favoretti提到的,这是
utils.traitlets
中的一个重要问题


我建议升级到EPD 7.3,看看是否能解决这个问题。我觉得很遗憾建议使用“刷地毯式”解决方案,但如果你刚开始用python深入IPython的内部,可能会有点头疼。

看起来像是
utils。traitles
得到了更新,而
CRegExp
遭到了弃用(这会很奇怪),或者其他一些黑魔法,比如将
CRegExp
重构到另一个模块,但错误的字面意思是模块
utils.traitlets
中没有
CRegExp
。看起来要么
utils.traitlets
更新了,要么
CRegExp
被弃用(这会很奇怪),或者其他一些黑魔法,比如将
CRegExp
重构到另一个模块,但错误的字面意思是模块
utils.traitlets
中没有
CRegExp