且构网

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

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

更新时间:2021-11-02 22:16:21

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

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