Delete unused packages from requirements file

前端 未结 3 596
生来不讨喜
生来不讨喜 2020-12-07 17:27

Is there any easy way to delete no-more-using packages from requirements file?

I wrote a bash script for this task but, it doesn\'t work as I expect

3条回答
  •  盖世英雄少女心
    2020-12-07 18:00

    I've used with success pip-check-reqs.

    With command pip-extra-reqs your_directory it will check for all unused dependencies in your_directory

    Install it with pip install pip-check-reqs.

提交回复
热议问题