Simplecv: simplecvを実行できません-AttributeError: 'InteractiveShellEmbed'オブジェクトに属性がありません 'define_magic'

作成日 2016年07月12日  ·  3コメント  ·  ソース: sightmachine/SimpleCV

こんにちは私はsimplecvをセットアップしようとしていますが、指示どおりにすべてをインストールしましたが、simplecvコマンドを実行すると、このエラーが発生します。 私はPythonを初めて使用するため、この問題を解決する方法がわかりません。

私はこれをOSX 10.11.5(el capitan)のpython2.7で実行しています

この問題をチェックしてくれた人に感謝します。


AttributeErrorトレースバック(最後の最後の呼び出し)
/Library/Frameworks/Python.framework/Versions/2.7/bin/simplecv in()
7 if name == ' 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 init_logging(log_level)
256 shellclear()
-> 257 scvShell = run_shell(interface)

run_shell(shell)の/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Shell/Shell.pyc
available_shellsのシェルの場合は213:
214試してみてください:
-> 215 return globals()シェル
ImportErrorを除く216:
217パス

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/SimpleCV-1.3-py2.7.egg/SimpleCV/Shell/Shell.pyc in setup_ipython()
125 scvShell = InteractiveShellEmbed(config = cfg、banner1 = Banner、
126 exit_msg = exit_msg)
-> 127 scvShell.define_magic( "tutorial"、magic_tutorial)
128 scvShell.define_magic( "clear"、magic_clear)
129 scvShell.define_magic( "example"、magic_examples)

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コメント

programmin1 picture programmin1  ·  11コメント

slanning6 picture slanning6  ·  8コメント

jodal picture jodal  ·  15コメント

lukaszb picture lukaszb  ·  14コメント