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 --proxy does not work for package dependencies if -r requirements.txt file is passed #12986

Closed
1 task done
scorpi023 opened this issue Oct 2, 2024 · 1 comment
Closed
1 task done
Labels
resolution: duplicate Duplicate of an existing issue/PR

Comments

@scorpi023
Copy link

Description

Running pip install -r requirements.txt --proxy http://company_proxy:port does not work when multiple packages are listed and if any of the package itself has a dependency of another package.
I do see there is a similar issue open here - #9691 but I cannot confirm if the root cause is the same.

  1. [ ]

Expected behavior

Running pip install -r requirements.txt --proxy http://company_proxy:port should work for all packages in the requirements.txt file even if the package has a dependency on another one.

pip version

24.2

Python version

3.12.7

OS

Windows 11 26100

How to Reproduce

  1. Make sure you are behind a proxy.
  2. Write a file with multiple packages listed in requirements.txt with at least one package having a dependency like winevt.
  3. Run pip install -r requirements.txt --proxy http://company_proxy:port
  4. Packages without dependencies will install and the ones that need dependencies will fail with timeout with the following error - subprocess-exited-with-error.
    pip subprocess to install build dependencies did not run successfully.

Output

No response

Code of Conduct

@scorpi023 scorpi023 added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Oct 2, 2024
@notatallshaw
Copy link
Member

Thanks for reporting, I can confirm the same, it's actually a duplicate of this issue: #6018

The workaround is to set the environmental variables HTTP_PROXY / HTTPS_PROXY or PIP_PROXY

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

No branches or pull requests

2 participants