如何使用〜波浪号而不是^插入符在诗歌中添加从属关系?

时间:2020-06-14 21:22:14

标签: python python-poetry

当我使用命令时:

poetry add djangorestframework

生成的结果始终使用尖号:

djangorestframework = "^3.11.0"

就我的情况而言,插入符号非常激进,因此我想使用代字号添加依赖项。

如何指导诗歌使用波浪号?

替代1 :可以,但是我必须先搜索最新版本,然后添加它。

poetry add djangorestframework~3.11.0

替代2 :不起作用,语法错误

poetry add djangorestframework~latest

0 个答案:

没有答案