在 Windows 上安装 rasa [英] Installing rasa on Windows

查看:39
本文介绍了在 Windows 上安装 rasa的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Windows 10 上安装 rasa.我已经安装了 Python 3.6 &点.当我运行 pip install rasa_nlu 时,出现以下错误:

c:program files (x86)python36-32includepyconfig.h(222):致命错误 C1083:无法打开包含文件:'basetsd.h':没有那个文件或目录错误:命令C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe"失败,退出状态为 2

我尝试了大多数解决方案,例如重新安装 Microsoft 可再发行组件、安装构建工具等,但都没有奏效.

解决方案

我也遇到了类似的问题.我是这样解决的:

为了在具有所有其他依赖项的 Windows 机器上全新安装 RASA NLU,我遵循以下步骤:

<块引用>
  • 安装

    接下来,在 Anaconda 3 命令提示符下以管理模式按此顺序安装以下软件包:

    <块引用>
    • Spacypip install -U spacy
    • Spacy 大型英语语言模型 - python -m spacy 下载 en_core_web_lg
    • 现在链接模型:python -m spacy link en_core_web_lg en

    • 如果上述失败回退:如果您的网络阻塞它,或者下载上述模型太慢,则通过下载回退直接来自其 GitHub回购使用 7z 提取 tar.gz 并执行 python setup.py install by导航到目录.

    • Scikitpip install -U scikit-learn

    • Numpypip install -U numpy
    • Scipy 包pip install -U scipy
    • Sklearnpip install -U sklearn-crfsuite
    • 小鸭 - pip install -U小鸭
    • 作为组件的 Tensorflow - pip install -U tensorflow
    • 最新版本的 RASA NLUpip install -U rasa_nlu

    通过在 Anaconda 命令提示符中粘贴以下命令来检查 RASA 是否安装:

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

    I am trying to install rasa on Windows 10. I have installed Python 3.6 & pip. When I am running pip install rasa_nlu I am getting the following error:

    c:program files (x86)python36-32includepyconfig.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
    

    I have tried most of the solutions like reinstalling Microsoft redistributables, installing build tools etc. but none of them worked.

    解决方案

    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:

    While installing Anaconda in: C:Anaconda3, because installing it in C:ProgramDataAnaconda3 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__);"

    这篇关于在 Windows 上安装 rasa的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆