-
Notifications
You must be signed in to change notification settings - Fork 3.1k
allow install --download
to download AND install
#2508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes, I have (updated the entry to reflect hat). Doing the offline install is not the problem. I cannot collect all pip installed packages in one place to reuse them later. |
You don't have to as pip does it for you in the form of its cache.
This is the real reason it doesn't work as you would like; having packages in cache does not prevent pip from reaching out to PyPI. See #2090 |
#2090 is unrelated, it revolves around PIP going to PyPI, no matter if This issue revolves around PIP going to PyPI, no matter if package already exists in cache. |
Right. Then #1572 is related although it goes much further. |
Closing this as download and wheel do most of what I want, I just wanted some additional convenience that's not really necessary. |
Currently pip disables installation when using the
--download
option withinstall
.This is very unfortunate as downloading AND installing could be used to allow more comfortable Fast & Local Installs, especially when your company has an internal cheeseshop that is only accessible from the inside or via VPN.
I would have a
pip.conf
and an
offline.conf
And then, for convenience set an alias
So when on the train, I could force a local install using
offlinepip
and as long as I have installed a req'd package usingpip
once, the installation would work.Currently, even with caching in place; the installation never works and is super annoying: pip tries to reach our internal cheeseshop repeatedly for each dependency I am trying to install, fails, tries again etc.
Alternatively, a
force-cache
flag would be nice (and less hackish), too. Anything to circumvent pip from trying to use the network.The text was updated successfully, but these errors were encountered: