Installing rasa on Windows

后端 未结 3 470
南旧
南旧 2021-01-03 16:34

I am trying to install rasa on Windows 10. I am done installing Python 3.6 and pip packege. When I am running pip install rasa_nlu I am getting the following er

3条回答
  •  情书的邮戳
    2021-01-03 16:53

    I also faced the similar issue. Here's how I resolved it:

    For a clean install of RASA NLU on a Windows machine with all other dependencies, I followed the following steps:

    • Anaconda 3 64-bit Windows
    • Install Visual C++ 2015 Build Tools
    • Visual C++ 14.0 x64

    While installing Anaconda in: C:\Anaconda3, because installing it in C:\ProgramData\Anaconda3 would cause some Folder Lock problem while installing some pip packages.

    Install JDK and JRE both and set the JAVA_HOME environment variable as JVM is required for the Duckling Date Parser needed by RASA NLU.

    Next, install the following packages in this order in administrative mode in Anaconda 3 command prompt:

    • Spacypip install -U spacy
    • Spacy Large English language model - python -m spacy download en_core_web_lg
    • Link the model now: python -m spacy link en_core_web_lg en

    • Fallback if the above fails: If your network is blocking it, or is too slow to download the above model, fallback by downloading it directly from its GitHub repo extract the tar.gz using 7z and do python setup.py install by navigating into the directory.

    • Scikitpip install -U scikit-learn

    • Numpypip install -U numpy
    • Scipy Packagepip install -U scipy
    • Sklearnpip install -U sklearn-crfsuite
    • Ducklingpip install -U duckling
    • Tensorflow as a component - pip install -U tensorflow
    • Latest version of RASA NLUpip install -U rasa_nlu

    Check if RASA installed or not by pasting the following command in Anaconda command prompt:

    python -c "import rasa_nlu; print(rasa_nlu.__version__);"

提交回复
热议问题