安装rasa_core时遇到的问题

时间:2018-10-04 16:23:06

标签: python installation chatbot rasa-nlu rasa-core

我正在尝试使用!pip install rasa_core;命令在我的python中安装rasa_core。 但是我遇到了错误:

以下是错误:

Failed building wheel for Twisted The scripts freeze_graph.exe, saved_model_cli.exe, tensorboard.exe, tflite_convert.exe, toco.exe and toco_from_protos.exe are installed in 'C:\Users\user\AppData\Roaming\Python\Python36\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Command "c:\programdata\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-fot9mu3e\\Twisted\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\user\AppData\Local\Temp\pip-record-vp3wq_7u\install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-install-fot9mu3e\Twisted\

任何人都可以帮助我。

2 个答案:

答案 0 :(得分:0)

我建议您通过miniconda安装它,因为要手动安装Twisted必须做很多事情,而conda会处理您需要的所有依赖项。 因此,请先安装miniconda https://conda.io/docs/user-guide/install/index.html 如果没有通过以下命令安装,请安装二进制软件包python-dev: 须藤apt-get install python3-dev 然后做 : pip安装扭曲 随便安装pip install rasa_nlu或pip install rasa_core

如果您需要张量流管道,请先执行 康达安装tensorflow 然后 pip安装rasa_nlu [tensorflow]

答案 1 :(得分:0)

我也遇到了同样的问题,并且在快速解决依赖关系后能够安装rasa_core。 请尝试以下操作:

  1. 首先安装扭曲的

    pip install Twisted

  2. 然后,安装rasa_core

    pip安装rasa_core