且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

pip 冻结,不依赖已安装的软件包

更新时间:2022-06-12 22:20:28

现在有了(免责声明:我做到了).

Now there is (disclaimer: I did it).

您只需要从 PyPI 安装 pip-chill 并从 Python 环境运行 pip-chill.

All you need is to install pip-chill from PyPI and run pip-chill from your Python environment.

如果你喜欢冒险并且不想固定版本(或想使用 pip-compile),你可以使用 pip-chill --no-version 它会给你您当前环境的最低要求.

If you are feeling adventurous and don't want to pin versions (or want to use pip-compile), you can use pip-chill --no-version and it'll give you the minimal requirements for your current environment.

https://github.com/rbanffy/pip-chill