-
Notifications
You must be signed in to change notification settings - Fork 3.1k
index-url option doesn't work with pip search #2170
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
Try it with the develop version, I believe it works there. |
I still get the ConnectionError. It seems that the url is hard-coded in commands/search.py:
I tried hard-coding a new url, but I'm using a local file:// cache, and the logic doesn't support that protocol. |
Correction: It's not hard-coded. I can pass it the path using the --index option, but I get:
I can also set "index=" in pip.conf, but I get the same message. Is there a reason it uses "index" instead of "index-url"? |
The fact that it uses The reason you get that error is the search command uses PyPI's XMLRPC api and your index doesn't support that. |
Is there any interest in supporting the Simple API? I suppose the lack of meta-data makes it pretty limited, but it can at least return name and version. |
This looks like a duplicate of #589 |
Closing as duplicate |
I have a package index setup on a LAN with no connection to the internet. I have index-url set to point to our index. Almost everything works well, except pip search always throws a ConnectionError.
Are there plans to support index-url for all pip commands. I'm curious as to why it would work with install, but not search.
The text was updated successfully, but these errors were encountered: