Simplecv: 无法运行 simplecv -- AttributeError: 'InteractiveShellEmbed' 对象没有属性 'define_magic'

创建于 2016-07-12  ·  3评论  ·  资料来源: sightmachine/SimpleCV

嗨,我正在尝试设置 simplecv,我按照说明安装了所有内容,但是当我运行 simplecv 命令时,出现此错误。 我是 python 新手,所以我不确定如何解决这个问题。

我在 OS X 10.11.5 (el capan) 上的 python 2.7 上运行它

感谢任何人检查这个问题。


AttributeError 回溯(最近一次调用最后一次)
/Library/Frameworks/Python.framework/Versions/2.7/bin/simplecv in()
7 如果名称== ' main ':
8 sys.exit(
----> 9 load_entry_point('SimpleCV==1.3', 'console_scripts', 'simplecv')()
10)

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Shell/Shell.pyc in main(*args)
第255话
第256话
--> 257 scvShell = run_shell(接口)

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Shell/Shell.pyc in run_shell(shell)
213 适用于 available_shells 中的 shell:
214 尝试:
--> 215 返回 globals()外壳
216 除了导入错误:
217关

setup_ipython() 中的 /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Shell/Shell.pyc
125 scvShell = InteractiveShellEmbed(配置=cfg,banner1=banner,
第126话
--> 127 scvShell.define_magic(“教程”,magic_tutorial)
128 scvShell.define_magic(“清除”,magic_clear)
第129话

AttributeError: 'InteractiveShellEmbed' 对象没有属性 'define_magic'

最有用的评论

尝试安装一些不同版本的 IPython
例如: pip install 'IPython==4' --force-reinstall

所有3条评论

尝试安装一些不同版本的 IPython
例如: pip install 'IPython==4' --force-reinstall

我正在运行 Ubuntu 14.04 Python2.7,起初没问题,当我重新启动计算机时,出现相同的错误。 但是在根据上层解决方案将我的 ipython 降低到 4 之后,它再次起作用了。

我有同样的问题AttributeError: 'InteractiveShellEmbed' object has no attribute 'define_magic'pip install 'IPython==4' --force-reinstall为我工作。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

takluyver picture takluyver  ·  30评论

slanning6 picture slanning6  ·  8评论

programmin1 picture programmin1  ·  11评论

jterrace picture jterrace  ·  3评论

chuma picture chuma  ·  3评论