pip-download icon indicating copy to clipboard operation
pip-download copied to clipboard

Requirements.txt - Dependencies always grab the latest version

Open PulsarEtcher opened this issue 3 years ago • 3 comments

If we have a requirements.txt with these two lines:

django-debug-toolbar==3.2
django==3.1.6

django-debug-toolbar has a dependency of "Django>=2.2", which means django==3.1.6 should be enough to satisfy it. However, when pip download starts to download django-debug-toolbar, rather than install django==3.1.6, it grabs the latest version.

PulsarEtcher avatar May 16 '21 17:05 PulsarEtcher

it seems the procedure deal with packages line by line rather than globally analysis.

dw763j avatar Nov 21 '23 11:11 dw763j

Yep, this tool is intended to use in offline scenarios. It means that you have to download some packages when the Internet is available and import them to a computer with no Internet connection. So, I think it's better to download more packages than less. However, I do wonder whether this behavior should be changed? Should we only download packages that satisfy the requirements? @PulsarEtcher @dw763j

youngquan avatar Nov 22 '23 09:11 youngquan

Yep, this tool is intended to use in offline scenarios. It means that you have to download some packages when the Internet is available and import them to a computer with no Internet connection. So, I think it's better to download more packages than less. However, I do wonder whether this behavior should be changed? Should we only download packages that satisfy the requirements? @PulsarEtcher @dw763j

In my case, I would agree with download more than less, if someone need to package usable environ, he can just use conda.

dw763j avatar Nov 24 '23 15:11 dw763j