2017-08-04 38 views
2

我試圖在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。

+1

歡迎來到堆棧溢出!事實證明,要在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

+0

spaCy github的更多幫助:https://github.com/explosion/spaCy/issues/1199 – iFlo

回答

0

我需要做的就是spaCy工作的有兩兩件事:

  1. Install VC2008 Redist (64Bit) I used this link: > http://www.microsoft.com/download/en/details.aspx?id=20922 .

  2. When I installed the model (I used Anaconda) ensure that I ran the Prompt as Administrator

最後,你可能想使用蟒蛇嘗試。 作品像一個魅力

相關問題