强制诗歌尊重requirements.txt中的版本

jav*_*dba 0 python pip python-poetry

以下内容位于requirements.txt中:

requirements.txt:packaging==20.9
Run Code Online (Sandbox Code Playgroud)

但在做了之后,我们现在在诗歌.lockpoetry add [some unrelated pkg] 中有:

{文件=“packaging-21.3.tar.gz”,散列=“sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb”},

这对我们不起作用。怎样才能得到诗歌听的requirements.txt?