繁体   English   中英

安装rasa_core时遇到的问题

[英]Facing issues while installing rasa_core

我正在尝试通过!pip install rasa_core;在我的python中!pip install 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\\

谁能帮我。

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

如果您需要tensorflow管道,则首先执行conda安装tensorflow,然后pip安装rasa_nlu [tensorflow]

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

  1. 第一次安装扭曲

    点安装Twisted

  2. 然后,安装rasa_core

    pip安装rasa_core

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM