[Tutor] PIP SSL Errno 11001

Mats Wichmann mats at wichmann.us
Sat Jun 8 10:56:39 EDT 2024


On 6/6/24 16:01, Krasicky, Luc via Tutor wrote:
> Hello,
> 
> I'm currently working on an issue I'm having with PIP. I am on windows 10 running PY version 3.12 with pip version 23.2.1. I am on a corporate computer in my office.
> 
> I cannot install packages. I run the command below and get the following error:
> 
>> pip install pandas
> WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000002A771A2EDB0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))': /simple/pandas/
...
> ERROR: Could not find a version that satisfies the requirement pandas (from versions: none)
> ERROR: No matching distribution found for pandas
> 
> I've done a couple of things to try and solve the issue, but still cannot. I tried running the below:
> pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org numpy
> 
> I added a pip.ini file to the >AppData>Roaming>Pip that contains the following:
> [global]
> trusted-host = files.pythonhosted.org pypi.org pypi.python.org
> proxy = myproxy (left this out for obvious reasons)
> 
> 
> I also tried adding my user/password to the proxy.
> 
> Am I screwing up the format of my proxy? Do I need to somehow include my IP address?
> 
> I am not sure where to go from here. Please let me know if you have any ideas!

You seem to be on the right track.  I'd use, while debugging, 
PIP_CONFIG_FILE to make sure you're really getting your file picked up.

proxy settings have to include a scheme, since you (understandably) 
obscured yours, we can't see if you're actually doing that.

I used to have this problem early on at my next-to-last corporate 
setting, sometimes you just need some help if they're blocking things at 
IT. Fortunately, haven't had to deal with that scenario for many many 
years now so don't have anything further useful to add.  I know the 
question comes up periodically, you're certainly not alone - maybe Stack 
Overflow has some suggestions?


More information about the Tutor mailing list