Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unhelpful error message when --find-links is a non-existent file path (without file:// scheme) #2968
This is not necessarily an issue if the path is not needed to install the package (for example, if the package is on PyPI, it will still successfully install, even with the warning). This is less of an issue now that pip caches wheels automatically (so removing manual caching of wheels is a viable solution for me), but caused me quite a bit of confusion.
After a bit of investigation, it seems like this is because the code here sets
One potential solution is to use
But that raises the issue of whether file paths should be considered secure origins even if they don't use a
Another potential solution would be to require local file references to use the
Ahh, that helps explain why no one else is really seeing this bug. I started on a new machine around the same time pip started caching wheels, so I didn't bother to create the wheelhouse directory. I didn't realize that this warning only occurs for directories that don't exist (and therefore are assumed to be URLs).