2017-09-01 16 views
0

Windows10 x64を使用していますが、pipを使用してspaCyをインストールしました。 pip listは私にspacy (1.9.0)を与え、C:\Python27\Lib\site-packagesにspacyフォルダを見つけることができます。spaCy読み込みエラー:DLLの読み込みに失敗しました:アプリケーションがサイドバイサイド設定が正しくないために起動できませんでした。

しかし、私はPyCharmでimport spacyをしようとするたびに、またはコマンドラインで python -c "import os; import spacy; print(os.path.dirname(spacy.__file__))"、私はこのエラーを取得する:オンラインいくつかの検索の後

Traceback (most recent call last): 
    File "C:\Python27\lib\site-packages\spacy\__init__.py", line 5, in <module> 
    from .deprecated import resolve_model_name 
    File "C:\Python27\lib\site-packages\spacy\deprecated.py", line 8, in <module> 
    from .cli import download 
    File "C:\Python27\lib\site-packages\spacy\cli\__init__.py", line 5, in <module> 
    from .train import train, train_config 
    File "C:\Python27\lib\site-packages\spacy\cli\train.py", line 8, in <module> 
    from ..scorer import Scorer 
    File "C:\Python27\lib\site-packages\spacy\scorer.py", line 4, in <module> 
    from .gold import tags_to_entities 
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. 

、私は提案のほとんどは視覚的にしなければならないことを見ましたC++の再配布可能なパッケージがインストールされています。私はこれに慣れていないので、私が持っているもののスクリーンショットです:enter image description here

これらはコントロールパネルでのみ表示されます。 %windir%/System32または%windir%/Program Filesに行くと、MS Visual Studioという名前のフォルダがありません。誰かがこの問題を私に助けてくれますか?前もって感謝します。

答えて

0

私はスペイシーが働いて得るために行うために必要な2つのことがあった。

  1. は、私は、このリンクを使用VC2008のRedist(64 - ) をインストールします。私はモデルをインストールした場合 http://www.microsoft.com/download/en/details.aspx?id=2092

  2. を(私はAnacondaを使用して)私が管理者としてプロンプトを実行したことを確認します。

最後にあなたがアナコンダ

を使用しようとする場合があります
関連する問題