You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is my query. I am using Python 3.8.10. During my laptop setup long time back, I was using proxy settings to work with pip3. I forgot where I have set this. Recently we moved to no proxy. However I am yet to figure where pip3 is taking proxy details from. Bash environment variables for proxy are unset. When I sudo pip3 --proxy "" install conan==1.60.0, I got Connection timeout error. Error excerpt is pasted under output section. I also tried an option "--no-proxy". But it doesn't work as well. Could someone please help me?
Expected behavior
Pip3 shouldn't work behind proxy.
pip version
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
Python version
python 3.8.10
OS
Ubuntu 20.04 behind WSL (WSL version: 1.2.5.0)
How to Reproduce
Set proxy settings.
Unset proxy settings from bash environment variable.
This is a duplicate of #5378, there is an open PR: #12011, it is not yet part of Pip.
Long story short, this is a known limitation of the requests library that for Pip to support it must implement a workaround (which is what the PR does).
A pragamatical workaround is to create a proxy on your own machine which doesn't use the proxy you want to avoid, and point Pip to your own proxy, I have had to do this in the past and used px-proxy (which gives full instructions on how to setup without Pip): https://github.com/genotrance/px#px
Description
Here is my query. I am using Python 3.8.10. During my laptop setup long time back, I was using proxy settings to work with pip3. I forgot where I have set this. Recently we moved to no proxy. However I am yet to figure where pip3 is taking proxy details from. Bash environment variables for proxy are unset. When I
sudo pip3 --proxy "" install conan==1.60.0
, I gotConnection timeout error
. Error excerpt is pasted under output section. I also tried an option "--no-proxy". But it doesn't work as well. Could someone please help me?Expected behavior
Pip3 shouldn't work behind proxy.
pip version
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
Python version
python 3.8.10
OS
Ubuntu 20.04 behind WSL (WSL version: 1.2.5.0)
How to Reproduce
sudo pip3 --proxy "" install <any package>
from Bash terminalOutput
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e3bf4ec40>, 'Connection to xx.xx.xx.xx timed out. (connect timeout=15)')': /simple/conan/
Code of Conduct
The text was updated successfully, but these errors were encountered: