我試圖在python(在Windows)中導入spaCy,但目前還沒有運氣。我安裝了virtualenv和pip和Anaconda spacy。與安裝包,但沒有問題,當我輸入spaCy(在Jupyter筆記本電腦)我得到以下錯誤:ImportError:DLL加載失敗導入空間
[in] import spacy [out] [...] ImportError: DLL load failed: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
當我再次運行輸入的錯誤信息如下:
[...] ImportError: cannot import name util
我不確定在哪裏尋找解決方案。我想到其他軟件包的版本或甚至Python版本的問題。
我目前使用Python 2.7.13。
歡迎來到堆棧溢出!事實證明,要在Windows中運行spacy for Python 2.7,您需要Visual Studio 2008: https://spacy.io/docs/usage/#source-windows 在微軟網站上找到它並不容易,但下載鏈接在這裏: https://www.microsoft.com/en-us/download/details.aspx?id=15336 一旦你安裝它,spaCy應該工作。 – iFlo
spaCy github的更多幫助:https://github.com/explosion/spaCy/issues/1199 – iFlo