Skip to content
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

PIP uses the cache by default if available #5

Open
peardox opened this issue Jul 23, 2022 · 0 comments
Open

PIP uses the cache by default if available #5

peardox opened this issue Jul 23, 2022 · 0 comments
Assignees

Comments

@peardox
Copy link
Contributor

peardox commented Jul 23, 2022

This can be undesirable, particularly when testing

I've managed to bodge in some hacky progress indication for my project so this is the first time I've spotted this anomoly.

I just noticed Torch was taking 50 seconds to install on my dev Laptop while a more reasonable figure is about 6+ mins (376s on testing)

There are two stages to a PIP install, aquisition and delpoyment. If the package is already in the cache then there's very little to do in the aquisition stage as the package's whl file is already in the cache.

While it's actually beneficial it's worth pointing out that if you have the same packages installed on System Python as you're trying to install for an Embedded Python then install times will be misleading when testing unless you 'pip cache purge' before running an application.

Hmm - wonder what happens if you put a fake package in the cache?

@lmbelo lmbelo self-assigned this Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants