gpt4 book ai didi

python - 诗歌虚拟环境已经激活

转载 作者:行者123 更新时间:2023-12-03 13:32:58 25 4
gpt4 key购买 nike

运行以下

poetry shell

返回以下错误
/home/harshagoli/.poetry/lib/poetry/_vendor/py2.7/subprocess32.py:149: RuntimeWarning: The _posixsubprocess module is not being used. Child process reliability may suffer if your program uses threads.                                                                                                                                                                                    
"program uses threads.", RuntimeWarning)
The currently activated Python version 2.7.17 is not supported by the project (^3.7).
Trying to find and use a compatible version.
Using python3 (3.7.5)
Virtual environment already activated: /home/harshagoli/.cache/pypoetry/virtualenvs/my-project-0wt3KWFj-py3.7

我如何克服这个错误?为什么此命令不起作用?

最佳答案

poetry shell是一个非常有问题的命令,维护人员经常谈论这个问题。解决此特定问题的方法是手动激活 shell 程序。可能值得以下别名

source "$( poetry env list --full-path )/bin/activate"

关于python - 诗歌虚拟环境已经激活,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60580332/

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