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

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

问题描述

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

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 error:

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

我已经尝试了大多数解决方案,例如重新安装Microsoft可再发行文件,安装构建工具等,但是没有一个起作用.

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:

要在具有所有其他依赖项的Windows计算机上全新安装RASA NLU,请执行以下步骤:

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

C:\Anaconda3中安装Anaconda时,因为在C:\ProgramData\Anaconda3中安装Anaconda会在安装某些pip软件包时引起一些文件夹锁定问题.

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

安装 JDK JRE 并将JAVA_HOME环境变量设置为 JVM .

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.

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

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

  • Spacy pip install -U spacy
  • Spacy大型英语语言模式-python -m spacy download en_core_web_lg
  • 立即链接模型:python -m spacy link en_core_web_lg en

  • 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

如果以上操作失败,则回退:如果您的网络阻止了该操作,或者下载该模型的速度太慢,请通过下载进行回退 直接从其 GitHub 回购 使用7z提取tar.gz并执行python setup.py install 导航到目录.

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.

Scikit pip install -U scikit-learn

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

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天全站免登陆