Why does pip install requirements.txt install extra packages?

前端 未结 2 1979
攒了一身酷
攒了一身酷 2021-01-27 14:29

I have a repository with an inflated requirements.tx that I\'d like to clean up. Using pipreqs I\'ve set my requirements.txt to be a minimal set of packages need for my reposito

2条回答
  •  花落未央
    2021-01-27 14:46

    Yes. The packages are dependencies of your dependencies​.

    But no, you should not specify them directly. Automatic tools know to download dependencies recursively and it would significantly add to maintenance overhead.

提交回复
热议问题