当我在 Python 3.7 中使用诗歌命令时,就我而言:
poetry export -f requirements.txt
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.
Run Code Online (Sandbox Code Playgroud)
到目前为止很清楚,但如果我运行诗歌更新,它会升级我的依赖项,这不是我目前想要的项目。如果我改为运行诗歌锁,它仍然会升级依赖项。
我该如何解决这个问题?