Can pip (or setuptools, distribute etc…) list the license used by each installed package?

前端 未结 11 1242
梦如初夏
梦如初夏 2020-12-13 09:31

I\'m trying to audit a Python project with a large number of dependencies and while I can manually look up each project\'s homepage/license terms, it seems like most OSS pac

11条回答
  •  臣服心动
    2020-12-13 10:00

    With pip:

    pip show django | grep License

    If you want to get the PyPI classifier for the license, use the verbose option:

    pip show -v django | grep 'License ::'

提交回复
热议问题