-
Notifications
You must be signed in to change notification settings - Fork 3k
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 installation with a url for constraint file behind proxy #9307
Comments
9.0.3 is almost three years old and not maintained for a long time. Do you see this in recent pip versions? The current is 20.3.3. |
Hi, I tried again with a more recent version of pip. I am not sure it's due to the problem from my proxy or not, I am saying that because although curl can be executed successfully but it takes serveral seconds to response the contents. What's the default timeout value for pip and what's the default for curl ? Maybe I should try to update pip timeout value and try again ? Here is my output.
curl is successful but it takes serveral seconds to get the content.
|
This reads exactly like the problem described in #1805 (that issue is closed to new comments). The proxy setting is used to fetch and install the first few items in the REQUIREMENTS file, then suddenly pip3 abandons/loses the proxy setting and starts going directly to pypi.org and files.pythonhosted.org. In an environment when a proxy is required, those direct requests fail. Some workarounds are specifying --proxy http://your.proxy:12345 on the command line, setting HTTPS_PROXY environment variable, or both. I'm using pip version 21.1.2 from behind a Very Large Corporation's proxy, and this problem bedevils me daily. I would be glad to contribute some debugging output if it's helpful. |
I don’t understand your diagnosis. The top post says they already set |
Environment
Description
There is a virtual env created.
Then I set the proxy variables in the shell session.
Then I activated the venv and launched the following pip install command with a url for constraint file.
But the pip cannot access the constraints file through proxy.
Maybe it's related to #3504
Expected behavior
pip can get the constraint file from given url via proxy and do the installation.
How to Reproduce
https://opendev.org/openstack/bifrost/raw/branch/master/requirements.txt
export http_proxy=...
andexport https_proxy=...
pip -v install -r requirements.txt -c https://releases.openstack.org/constraints/upper/master
Output
The text was updated successfully, but these errors were encountered: