gpt4 book ai didi

python - 安装 rasa_nlu 时出现段错误

转载 作者:行者123 更新时间:2023-12-01 09:14:10 27 4
gpt4 key购买 nike

我正在尝试使用 RASA 构建聊天机器人,但在安装 RASA_NLU 时遇到问题这是我输入的行

pip install rasa_nlu[spacy]
Segmentation fault (core dumped)

最佳答案

你可以尝试:

pip install rasa_nlu --no-cache-dir
python -m rasa_nlu.server &

或者手动下载 git 并安装包:

git clone git@github.com:RasaHQ/rasa_nlu.git
cd rasa_nlu
pip install -r requirements.txt
pip install -e .

在 Ubuntu 9.10 或更高版本上安装 scrapy 之前,您需要先运行此命令:

sudo apt-get install python-dev python-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev

然后pip install spacy

最安全的方法是安装在虚拟环境中。如果这些都不起作用,请考虑重新安装 Python。

有关 Ubuntu 上段错误的更多信息:https://askubuntu.com/questions/138407/what-is-a-segmentation-fault

关于python - 安装 rasa_nlu 时出现段错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51399538/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com