title: Pip3 doesn't work because of SSL module error
body: <p>Running into a weird situation where <code>pip install</code> works fine but <code>pip3 install</code> fails with the message below. Everything was working properly until recently I used virtual environment for the first time.   </p>
  
  <pre><code>$ pip3 install yahoo_fin
  
  WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
  Requirement already satisfied: yahoo_fin in /usr/local/lib/python3.7/site-packages (0.8.2)
  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've come across several similar posts and I think I've tried them all including <code>brew install openssl</code>, <code>brew reinstall python</code>, <code>pip3 install certifi</code>...yet none of them works. </p>
  
  <p>For your reference: <br></p>
  
  <p>$ which python3:  </p>
  
  <pre><code>/usr/local/bin/python3 
  </code></pre>
  
  <p>$ which pip3</p>
  
  <pre><code>/usr/local/bin/pip3 
  </code></pre>
  
  <p>$ python3 --version</p>
  
  <pre><code>Python 3.7.4
  </code></pre>
  
  <p>Any help would be greatly appreciated as I've hit a wall. </p>
  
  <p><strong><em>Additional info since original post</em></strong></p>
  
  <p>When I ran the following: </p>
  
  <pre><code>$ python -c "import ssl; print(ssl.OPENSSL_VERSION)"
  </code></pre>
  
  <p>it returned: </p>
  
  <pre><code>LibreSSL 2.2.7
  </code></pre>
  
  <p>But then, when I ran this: </p>
  
  <pre><code>python3 -c "import ssl; print (ssl.OPENSSL_VERSION)"
  </code></pre>
  
  <p>I got: </p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;string&gt;", line 1, in &lt;module&gt;
    File "/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 98, in &lt;module&gt;
      import _ssl             # if we can't import it, let the error propagate
  ImportError: dlopen(/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_ssl.cpython-37m-darwin.so, 2): Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib
    Referenced from: /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_ssl.cpython-37m-darwin.so
    Reason: image not found
  </code></pre>
  
  <p>Is the error above the crux of the issue? If so, how do I fix it? </p>