how to specify trusted hosts in windows config file

dcwhatthe at gmail.com dcwhatthe at gmail.com
Mon Mar 30 14:43:41 EDT 2020


These are some of the command lines I've typed, and the results.  It looks like it's going to https://pypi.org.

I have no idea whether that's correct, or not.

I'm able to get past the Certificate error with other packages like requests.  But I just can't update pip.

:


[C:\TCMD25]python -m pip install  --trusted-host pypi.org --trusted-host --upgrade pip
Requirement already satisfied: pip in c:\users\blahblah\appdata\local\programs\python\python38-32\lib\site-packages (19.2.3)
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.


[C:\......\Python\Python38-32\Scripts]python -m pip install --verbose --trusted-host pypi.org --trusted-host --upgrade pip
Created temporary directory: ...
Created requirements tracker ...
Requirement already satisfied: pip in c:\users\dBlah2\appdata\local\programs\python\python38-32\lib\site-packages (19.2.3)
Cleaning up...
Removed build tracker 'C:\\Users\\DBlah2\\AppData\\Local\\Temp\\pip-req-tracker-1djqfhix'
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.



[C:\......\Python\Python38-32\Scripts]python -m pip --verbose install --upgrade pip
Created temporary directory: ...
Created requirements tracker ...
1 location(s) to search for versions of pip:
* https://pypi.org/simple/pip/
Getting page https://pypi.org/simple/pip/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/pip/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
Incremented Retry for (url='/simple/pip/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFIC
ATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /simple/pip/
Starting new HTTPS connection (2): pypi.org:443
Incremented Retry for (url='/simple/pip/'): Retry(total=3, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFIC
ATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /simple/pip/
Starting new HTTPS connection (3): pypi.org:443
Incremented Retry for (url='/simple/pip/'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFIC
ATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /simple/pip/
Starting new HTTPS connection (4): pypi.org:443
Incremented Retry for (url='/simple/pip/'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFIC
ATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /simple/pip/
Starting new HTTPS connection (5): pypi.org:443
Incremented Retry for (url='/simple/pip/'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFIC
ATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)'))': /simple/pip/
Starting new HTTPS connection (6): pypi.org:443
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceed
ed with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certif
icate (_ssl.c:1108)'))) - skipping
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Given no hashes to check 0 links for project 'pip': discarding no candidates
Installed version (19.2.3) is most up-to-date (past versions: none)
Requirement already up-to-date: pip in c:\users\dBlah2\appdata\local\programs\python\python38-32\lib\site-packages (19.2.3)
Cleaning up...
Removed build tracker 'C:\\Users\\DBlah2\\AppData\\Local\\Temp\\pip-req-tracker-x0doslyv'
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.





More information about the Python-list mailing list