PROBLEM
- Whatever I try to install from terminal with pip I get this error message
- I may have installed and fully deleted homebrew (macOS 10.12) before but I am not sure how to solve this
- The Django 3.0 app runs perfectly well
Installs I try to run (all cases same error message)
pip install -r requirements.txt
pip install django-storages
pip install ssl
ERROR MESSAGE
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/django-storages/
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/django-storages/
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/django-storages/
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/django-storages/
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/django-storages/
Could not fetch URL https://pypi.org/simple/django-storages/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/django-storages/ (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 django-storages (from versions: none)
ERROR: No matching distribution found for django-storages
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
Tried Solutions
- https://stackoverflow.com/a/59280089/10270590
- pip TLS/SSL, however the ssl module in Python is not available problem
- pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- @hoefling https://stackoverflow.com/users/2650249/hoefling recommended to run:
python -c "import _ssl"
- RESULT:
dyld: Library not loaded: @executable_path/../.Python Referenced from: /Users/..../django_app_mainfolder/ven/bin/python Reason: image not found Abort trap: 6
- Recommended solution: Broken references in Virtualenvs
- I was looking at the main ANSWER here but I have no idea what is going on https://stackoverflow.com/a/25947333/10270590 = This is the origin of the answer
- Not worked - https://stackoverflow.com/a/23660033/10270590
- Non usable - I am not using brew now - https://stackoverflow.com/a/51145074/10270590
- RESULT: