pypa / pipx

Install and Run Python Applications in Isolated Environments
https://pipx.pypa.io
MIT License
10.42k stars 412 forks source link

Offline mode #1505

Closed mwriter closed 1 month ago

mwriter commented 2 months ago

Please show an example of how to use pipx offline using sample .whl files. Pipx is constantly going online. At first during initialization it climbs to update pip

python -m pip --no-input --disable-pip-version-check install --force-reinstall -q --upgrade pip

Then when launching a package already installed from a whl file it starts searching for it on pypi.org. Or is such mode not provided at all?

chrysle commented 2 months ago

At first during initialization it climbs to update pip

It is being worked on providing a way to skip this shared library upgrade via an option, see #1278.

Then when launching a package already installed from a whl file it starts searching for it on pypi.org.

Yeah, unfortunately this is a limitation right now; working around it was already requested in #1275.

mwriter commented 2 months ago

It is being worked on providing a way to skip this shared library upgrade via an option

But the documentation says

--skip-maintenance  (deprecated) No-op

this is a limitation right now

I understand correctly that initially, when designing pipx, it was possible to save installed packages locally for subsequent launches. And all these years no one was confused that there were network requests even for already installed packages? And it's such a sandbox system, seriously :)

uranusjr commented 2 months ago

Contributions are always welcomed.