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

--proxy does not override global config #12238

Closed
1 task done
p-fruck opened this issue Aug 23, 2023 · 2 comments
Closed
1 task done

--proxy does not override global config #12238

p-fruck opened this issue Aug 23, 2023 · 2 comments
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@p-fruck
Copy link

p-fruck commented Aug 23, 2023

Description

I tried install some project requirements on windows on a machine that I require using a proxy. Using pip install --proxy myproxy I am able to install prcompiled wheels, but the installation of redfish failed during the Installing build dependencies step.

I have a config file in %APPDATA%/pip/pip.ini with the following content:

[global]
proxy = otherproxy

Expected behavior

The --proxy flag should override the global configuration.

pip version

23.2.1

Python version

3.11

OS

Windows 10 Enterprise

How to Reproduce

  1. Configure %APPDATA%/pip/pip.ini with otherproxy
  2. run pip install --proxy myproxy redfish
  3. Notice otherproxy being used for installing build dependencies

Output

No response

Code of Conduct

@p-fruck p-fruck added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Aug 23, 2023
@jzchiang
Copy link

To add to this, when a --proxy argument is provided to pip install, but a proxy is not specified in the global settings, no proxy is used for installing build dependencies.

@notatallshaw
Copy link
Member

Thanks for reporting, this is actually a duplicate of #6018 which is waiting on someone to raise a PR for this.

As mentioned in there, the general workaround is to use the PIP_PROXY environmental variable, or standard HTTP proxy environmental variables (#6018).

@notatallshaw notatallshaw closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants