title: pip gives error "pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available." in mac
body: <p><strong>Edit</strong>: the answer suggested in comment or other answers I found are main for linux or for default python installed using brew. The problem I am facing is on the python version installed using pyenv</p>
  
  <p>when I am trying to install any package using pip I get this error message</p>
  
  <pre><code>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>I am using pyenv, pyenv-virtualenv and I am trying to install packages in a virtualenv with python 3.7.0. It was working fine few days back, I suspect updating my macOS to 10.14.6 caused this issue.</p>
  
  <p>I couldn't find any working solution when googling or on StackOverflow. Can someone please help me to fix the issue </p>