2015-11-17 24 views
2

當我進口殼牌從SimpleCVShimWarning對進口殼牌形式SimpleCV

從SimpleCV進口殼牌

我得到這個錯誤

C:\ Python27 \ LIB \定點packages \ IPython \ config.py:13:ShimWarning:IPython.config軟件包已被棄用。您應該從traitlets.config導入。 「你應該從traitlets.config進口替代」,ShimWarning)

C:\ Python27 \ LIB \站點包\ IPython的\ frontend.py:21:ShimWarning:在頂級>水平frontend包已被棄用。其所有子包已被移至頂級IPython級別。雖然調用

Shell.main()

的SimpleCV控制檯做 「所有及其子包已經被移動到頂部IPython水平。」> ShimWarning)

但是當我關閉img.show()的窗口時,它只是退出整個python控制檯,而不僅僅是SimpleCV控制檯

不知道什麼 正在發生!

+0

你有沒有找到一個解決這個? – g491

回答

1

一些SimpleCV代碼需要更新 - 我相信它是爲舊版本編寫的,而不是安裝的版本。這裏是你需要做的:

找到Shell.py它可能在C:\Python27\Lib\site-packages\SimpleCV\Shell之類的地方,並在編輯器中打開它。然後執行以下

大約線50變化from IPython.config.loader import Configfrom traitlets.config.loader import Config

大約51行,改變from IPython.frontend.terminal.embed import InteractiveShellEmbedfrom IPython.terminal.embed import InteractiveShellEmbed