title: ImportError: No module named _psycopg
body: <p>I've looked at every post concerning this issue. I've (re)installed PostgreSQL on my Mac using Homebrew. I've adjusted the PATH variables. I've installed/uninstalled/reinstalled psycopg2. I've watched videos. Still, I cannot figure out how <strong>psyco</strong>pg2 can be squarely on my machine and yet unavailable to my database and, by extension, my Flask application. Here is my latest error message with confirmation that, yes, it's there and, no, I can't use it (or Python won't acknowledge it). Any help would be greatly appreciated. This is day two of this nonsense.</p>
  
  <pre><code>RCD@Ryans-MacBook-Pro ~ -  $ sudo pip3 install psycopg2
  Password:
  
  Requirement already satisfied: psycopg2 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (2.7.5)
  
  RCD@Ryans-MacBook-Pro ~ -  $ python
  
  &gt;&gt;&gt; import psycopg2
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/psycopg2/__init__.py", line 50, in &lt;module&gt;
      from psycopg2._psycopg import (                     # noqa
  ImportError: No module named _psycopg 
  </code></pre>