title: Python “SSLError(”Can't connect to HTTPS URL because the SSL module is not available.“)': /simple/docutils/”
body: <p><strong>PROBLEM</strong> </p>
  
  <ul>
  <li>Whatever I try to install from terminal with pip I get this error message </li>
  <li>I may have installed and fully deleted <strong>homebrew</strong> (macOS 10.12) before but I am not sure how to solve this</li>
  <li>The Django 3.0 app runs perfectly well</li>
  </ul>
  
  <p><strong>Installs I try to run</strong> (all cases same error message)</p>
  
  <pre><code>pip install -r requirements.txt
  pip install django-storages
  pip install ssl
  </code></pre>
  
  <p><strong>ERROR MESSAGE</strong></p>
  
  <pre><code>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
  </code></pre>
  
  <p><strong>Tried Solutions</strong></p>
  
  <ul>
  <li><a href="https://stackoverflow.com/a/59280089/10270590">https://stackoverflow.com/a/59280089/10270590</a></li>
  <li><a href="https://stackoverflow.com/questions/53742171/pip-tls-ssl-however-the-ssl-module-in-python-is-not-available-problem">pip TLS/SSL, however the ssl module in Python is not available problem</a></li>
  <li><a href="https://stackoverflow.com/questions/45954528/pip-is-configured-with-locations-that-require-tls-ssl-however-the-ssl-module-in/59280089#59280089">pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available</a></li>
  <li>@hoefling <a href="https://stackoverflow.com/users/2650249/hoefling">https://stackoverflow.com/users/2650249/hoefling</a> recommended to run: <code>python -c "import _ssl"</code>
  
  <ul>
  <li>RESULT: <code>dyld: Library not loaded: @executable_path/../.Python
  Referenced from: /Users/..../django_app_mainfolder/ven/bin/python
  Reason: image not found
  Abort trap: 6</code></li>
  <li>Recommended solution: <a href="https://stackoverflow.com/questions/23233252/broken-references-in-virtualenvs">Broken references in Virtualenvs</a></li>
  <li>I was looking at the main ANSWER here but I have no idea what is going on <a href="https://stackoverflow.com/a/25947333/10270590">https://stackoverflow.com/a/25947333/10270590</a> = <a href="https://web.archive.org/web/20150206132233/https://wirtel.be/posts/en/2014/07/29/fix_virtualenv_python_brew/" rel="nofollow noreferrer">This is the origin of the answer</a></li>
  <li>Not worked - <a href="https://stackoverflow.com/a/23660033/10270590">https://stackoverflow.com/a/23660033/10270590</a></li>
  <li>Non usable - I am not using brew now - <a href="https://stackoverflow.com/a/51145074/10270590">https://stackoverflow.com/a/51145074/10270590</a></li>
  </ul></li>
  </ul>