If you are a Python beginner but want to operate AWS by imitating the appearance and try to drop boto3 pip install boto3 I can't.
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting boto3
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/boto3/
Could not fetch URL https://pypi.org/simple/boto3/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/boto3/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Could not find a version that satisfies the requirement boto3 (from versions: )
No matching distribution found for boto3
Typo? It's not, because I copied and pasted Pypi's commands.
When I googled the error, an article appeared that I did not trust it due to the certificate, so I executed it. https://qiita.com/agajo/items/73d6f14855da703972e0
But it doesn't work.
If you look at the pip page on the Official Site
`If you have multiple versions of Python installed, you need to specify which Python execution environment to install the package on. ``
a. Speaking of which, remembering that 2.x was installed due to another system, specify the version and execute
py -3 -m pip install boto3
Solved safely
Recommended Posts