-
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 ignores proxy settings except ones defined in environment variables #9105
Comments
Can you print out your config with |
On my PC I get no output for this command |
|
@danielhrisca If you get no output, then your pip config is not in the right folder. Please refer the Windows steps here. Also, ensure you're using pip > 18. Preferably, the latest version. @wingsoflight That is strange. |
@stonecharioteer I will have this in mind in future, but I think things should work even if you don't have a config setup up right? |
@danielhrisca unless you're in a corporate network with proxies being needed. |
I don't understand why pip can't use/forward the proxy given in the command line invocation using the |
Oh I misread your question. Yes, it should. That's why the argument exists. By the way, when you do this, I recommend setting even the |
I always use the |
I could also add that even though |
I think its because of using the |
This would be a case of #7805 |
Problem-related pypa/pip#9691. Fix will be applied by the commit discussed here , on the |
I also had the problem, where if set HTTP_PROXY and HTTPS_PROXY on powershell, it was not working. So I set it now in the user environment variables and it is solved for me, but wanted to let you guys know.
|
First I would like to point out that for pip >= 22.1 the --proxy keyword should be working as a result of this merge. @kevingoos Be careful with |
This comment was marked as off-topic.
This comment was marked as off-topic.
In Powershell, you can also just use the following to temporarily set up
env variables in the running shell:
$env:HTTP_PROXY="http://proxy.details"
$env:HTTPS_PROXY="http://proxy.details"
…On Thu, 16 Jun 2022 at 15:46, Thiago ***@***.***> wrote:
First I would like to point out that for pip >= 22.1 the --proxy keyword
should be working as a result of this merge
<#10680>.
@kevingoos <https://github.com/kevingoos> Be careful with set HTTP_PROXY
in PowerShell it DOES NOT WORK as in the CMD. Instead you should use [System.Environment]::SetEnvironmentVariable("HTTPS_PROXY
", "your_proxy")
—
Reply to this email directly, view it on GitHub
<#9105 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOLVRBLIEOHN57APGGCSWLVPMV4FANCNFSM4TLHPNXQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Any update to this? I experience the same issue. |
windows10, settings->network&internet->proxy->Use a proxy server, the ip and port are exactly same as the ones set in the system setting( settings->network&internet->proxy->Use a proxy server). |
@andrewchenshx I hope this helps to clarify the issue. :) |
I experienced this issue too. I downgrade |
Environment
Clean installed OS with official python binaries.
Description
I have a clean Windows 10 OS with installed offical
python==3.7.9
binaries. When I tried to install packages via pip, I encountered problem with proxy settings which was written inpip.ini
, that pip seems to be ignore it. I also tried to pass config with corresponding--proxy
option, but similarly it do not affected to pip's behavior. Only proxy settings written toHTTP_PROXY
orHTTPS_PROXY
evs was accepted.Expected behavior
To be able download a packages from pypi if proxy settings well defined in any source which were pointed in documentation.
How to Reproduce
pip.ini
inside it and define your proxy settings as described in documentation.pip config list
to ensure that your configs have been read succesfully.pip install <package>
without settingHTTP_PROXY
orHTTPS_PROXY
environment variables.--proxy
option.Output
The text was updated successfully, but these errors were encountered: