Click here to Skip to main content
15,744,304 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Fairly new to python and I'm having trouble adding django and djangorestframework on my "work" computer. On my home computer, it works fine, no issues. On my "work" computer, it bombs even though I use "--trusted-host" etc. I'm on Win 10.

This is the error:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /simple/pip/

I don't know if this is a "permissions" thing or what?

What I have tried:

I'm using python 3.8.0 with pip 19.3.1. I've looked at several things, ie curl get-pip from the site etc to update pip but I'm not sure if that's the issue or not.
Updated 29-Jan-20 11:35am

Share this answer
PeteLux36 29-Jan-20 13:51pm    
Thanks for the quick response! I'm using 3.8, not 3.7 and I don't see anything remotely related to Certificates.command in my 3.8 folder. I do see in the "Tools/scripts"..
phil.o 29-Jan-20 14:15pm    
And did you try to get remote certificates?
PeteLux36 29-Jan-20 14:21pm    
I'm not sure how to do that. Do I need to download and then create the script?
phil.o 29-Jan-20 14:26pm    
Since it's a .py file, something like python.exe in a console may give interesting results.
you need to set and as trusted hosts. Try this

$ pip install --trusted-host --trusted-host <package_name>

Also, since it's 'work' computer you need to check if the issue is a corporate proxy/firewall which might not be allowing traffic to or
Share this answer
PeteLux36 30-Jan-20 6:46am    
I've tried that and I'll check if my firewall is blocking too.
PeteLux36 30-Jan-20 7:14am    
This is crazy. I started my computer and just have WIFI turned on. I did as you said launching django and djangorestframework and it installed fine! I have the server running and testing now.

So what should I tell the admin to do since I probably don't have access? Just whitelist pypi etc?
MehreenTahir 30-Jan-20 12:52pm    
If you guys are adopting Django for development on organization level then it's a good idea to whitelist pypi to save others from trouble. If you're the only one working with it and nothing else is causing any problem then probably you can skip it for now.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900