rasa - 发现的虚拟环境似乎已损坏| python诗歌

标签 rasa python-poetry

我正在按照以下链接在系统上安装RASA:https://github.com/RasaHQ/rasa
但是不幸的是,当尝试安装依赖项或用Makefile编写的以下任何诗歌命令时,

$poetry run
$poetry install

我收到以下错误:

enter image description here

好像在虚拟环境设置中存在一些问题,但是不知道如何解决。以下是堆栈跟踪:
$ make install
poetry run python -m pip install -U 'pip<20'
The virtual environment found in /home/kamaldeep/.cache/pypoetry/virtualenvs/rasa-LHgLSZoI-py3.6 seems to be broken.
Recreating virtualenv rasa-LHgLSZoI-py3.6 in /home/kamaldeep/.cache/pypoetry/virtualenvs/rasa-LHgLSZoI-py3.6

[CalledProcessError]
Command '['/home/kamaldeep/.cache/pypoetry/virtualenvs/rasa-LHgLSZoI-py3.6/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
Makefile:43: recipe for target 'install' failed
make: *** [install] Error 1

最佳答案

如果您遇到错误的虚拟环境的错误消息,例如

The virtual environment found in /home/kamaldeep/.cache/pypoetry/virtualenvs/rasa-LHgLSZoI-py3.7 seems to be broken

然后在相应的python包(例如python3.6,python3.5)中安装venv。就我而言,我正在使用python 3.7
sudo apt-get install python3.7-venv

其他方法是禁用虚拟环境
poetry config virtualenvs.create false

关于rasa - 发现的虚拟环境似乎已损坏| python诗歌,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61351659/

相关文章:

bots - rasa 核心和 botkit 框架在对话流程方面有什么区别?

python - 如何使用 Poetry 将 Python 包发布到 CodeArtifact?

rasa-nlu - 在 rasa 中训练模型后查找表不起作用

rasa-nlu - rasa form如何不断循环提问?

python - Poetry 在 pip 中安装 -f 标志的等效项

python - 如何为诗歌指定存储库分支?

python - 诗歌安装失败,EnvCommandError : looks for version 2020. 12.21.3-lambda,为什么?

python - 如何使用 pyproject.toml 设置和诗歌运行脚本?

twilio - "Twilio could not find a Channel with the specified From address"

regex - 将Regex与Rasa一起使用