2024年4月13日发(作者:)

platform.

In my opinion,

pip wheel

is more like

pip install

than

pip download

, cause it can only "download" the packages with current interpreter.

Now for your questions:

1. Are then the two commands equivalent? (In this case this would look like replication of instructions, not really a good design principle

uncle Guido!)

Ans: For packges compatible with current interpreter, yes, they are almost equivalent, except you want some built options.

2. How can I achieve my goal of obtaining the whls required out of my python environment and ignoring any internet 'index's?

Ans: Both command can download from local index or a local directory, but if you want packages for other platform,

pip download

is needed.

In your situation, you may create your own index or a directory holds all packages you needed and install from there every time.

Expect more precise answers.