2017-10-12 18 views
0

Windows 10にrasaをインストールしようとしています。 Python 3.6とpip packegeをインストールしました。 私は、次のエラーを取得していますpip install rasa_nluを実行しています:Windowsにrasaをインストールする

c:\program files (x86)\python36-32\include\pyconfig.h(222): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory 

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2 

私はなどのツールを構築しインストールする、マイクロソフトの再頒布可能を再インストールするようなソリューションのほとんどを試してみましたが、それらのどれも働きました。

+1

このインストールにはMicrosoft Visual Studioが必要です。 'C:\\ Program Files(x86)\\ Microsoft Visual Studio 14.0 \\ VC \\ BIN \\ cl.exe'がインストールされ、パスにあるかどうか確認できますか? –

答えて

0

短い答え

インストールに失敗した依存関係のため、プリコンパイルされたホイール・バンドルを使用してください。

rasa_nluをインストールしている間、私は同様の問題に直面し、これは私がそれを解決する方法である:Download here

pip install /path/to/bundle.whl 

ロング回答を行う(これには、ご自身の責任で使用非公式なソースです)。

大きな問題は、Twistedパッケージをインストールすることでした。私は再配布可能をインストールしようとしたツールを構築し、私の最後のエラーは、私はその後、代替アプローチでPythonライブラリのインストールを処理する方法について説明し答えhereに従うことを決めたthis-

c:\program files\python36\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory 

    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.11.25503\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 

のように見えていました。

私の最終的な解決は、上記のソースからツイストホイールをダウンロードしていたので、パッケージをインストールしてrasaのインストールを続けます。

pip install ./Twisted-17.9.0-cp36-cp36m-win_amd64.whl 
pip install rasa_nlu 

あなたは非公式なソースを使用して、実際に懐疑的なされている場合は、私はあなた自身のバンドルを構築し、インストールのためにそのホイールを使用して、以前の共有SFの答えの指示に従ってください。

1

私も同様の問題に直面しました。ここで私はそれを解決する方法は次のとおりです。

クリーンな他のすべての依存関係を持つRASA NLUのインストールについては、私は続く:

Anaconda 5.0.1 64-bit Windows for installing Python 3.6.3 interpreter: https://repo.continuum.io/archive/Anaconda3-5.0.1-Windows-x86_64.exe

& (If you are using Visual Studio 2015 then): Python Tools for Visual Studio 2015: https://ptvs.azureedge.net/download/PTVS%202.2.6%20VS%202015.msi

(If you are using Visual Studio 2017 then): Install Visual C++ 14.0 Runtime.

次に、コマンドプロンプトで、管理者モードで、このためには、以下のパッケージをインストールします。

  1. Spacy Machine Learning Package: pip install -U spacy
  2. Spacy English Language Model: python -m spacy download en
  3. Scikit Package: pip install -U scikit-learn
  4. Numpy package for mathematical calculations: pip install -U numpy
  5. Scipy Package: pip install -U scipy
  6. Sklearn Package for Intent Recognition: pip install -U sklearn-crfsuite
  7. NER Duckling for better Entity Recognition with Spacy: pip install -U duckling
  8. RASA NLU: pip install -U rasa_nlu==0.10.4
関連する問題