PureStorage-OpenConnect / TestDriveNewStack

An easy way to try out Ansible in a totally isolated, Pure Storage Test Drive environment.
2 stars 4 forks source link

SSL failure when executing pip3 install purestorage on TestDrive-Beta #3

Closed ccrow42 closed 4 years ago

ccrow42 commented 4 years ago

we are getting an invalid ssl cert

[root@linux1 TestDriveNewStack]# pip3 install purestorage WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead. Collecting purestorage Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)'),)': /simple/purestorage/ Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)'),)': /simple/purestorage/ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)'),)': /simple/purestorage/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)'),)': /simple/purestorage/ Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)'),)': /simple/purestorage/ Could not fetch URL https://pypi.python.org/simple/purestorage/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/purestorage/ (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:877)'),)) - skipping Could not find a version that satisfies the requirement purestorage (from versions: ) No matching distribution found for purestorage

ccrow42 commented 4 years ago

Fixed with this: python3 -m pip install --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org purestorage

ccrow42 commented 4 years ago

PIP commands updated, closing