我正在按照以下链接在系统上安装RASA:https://github.com/RasaHQ/rasa
但是不幸的是,当尝试安装依赖项或用Makefile编写的以下任何诗歌命令时,
$poetry run
$poetry install
我收到以下错误:
好像在虚拟环境设置中存在一些问题,但是不知道如何解决。以下是堆栈跟踪:
$ 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/