TLS/SSL issue with pip installing PyTeal

hi dear
I just met Algorand
please guide me

(venv) root@kali:~/auction-demo# python3 -m pip install pyteal
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.                                    
WARNING: 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/pyteal/            
WARNING: 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/pyteal/            
WARNING: 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/pyteal/            
WARNING: 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/pyteal/            
WARNING: 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/pyteal/            
Could not fetch URL https://pypi.org/simple/pyteal/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pyteal/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement pyteal (from versions: none)                                                           
ERROR: No matching distribution found for pyteal
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.                                    
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 exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

Welcome to Algorand!

I moved your post to a new topic because it was a different error.

This looks like your Python installation is missing TLS/SSL or certificates.
When you Google “pip is configured with locations that require tls/ssl” you can see many different possible solutions depending on your exact setup.

If you’re using macOS, I strongly recommend to not install Python using the graphical installer. If you did that, uninstall completely Python and then install homebrew (https://brew.sh/) and then install Python from there (brew install python3).

See also GitHub - algorandfoundation/buildweb3: Repository for the Algorand class of the "Building with Blockchain for Web 3.0" course (https://buildweb3.org)

1 Like

Thank you my dear friend it was solved