pip freeze without dependencies of installed packages

后端 未结 2 501
心在旅途
心在旅途 2020-12-08 19:40

When I do pip freeze I get the packages I\'ve explicitly installed plus those packages that are dependencies of those packages.

For example:

<         


        
2条回答
  •  有刺的猬
    2020-12-08 20:11

    Now there is (disclaimer: I did it).

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

    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

提交回复
热议问题