Why does pip install requirements.txt install extra packages?

前端 未结 2 1975
攒了一身酷
攒了一身酷 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 15:00

    This might have been because of the dependencies of your written libs in requirements.txt. For ex: if you have written scipy as requirement numpy will also be installed because scipy is dependent on numpy.

提交回复
热议问题