title: ImportError: No module named 'flask_sqlalchemy' w/ 2 Versions of Python Installed
body: <p>Tried running a file with the following imports:</p>
  
  <pre><code>from flask_sqlalchemy import sqlalchemy
  from sqlalchemy import create_engine
  from sqlalchemy.orm import scoped_session, sessionmaker
  </code></pre>
  
  <p>Received the following error:</p>
  
  <pre><code>ImportError: No module named 'flask_sqlalchemy'
  </code></pre>
  
  <p>SQLAlchemy is installed. Still, I tried to reinstall into the directory in which it will be used. I got this:</p>
  
  <pre><code>The directory '/Users/_/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  The directory '/Users/_/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  Requirement already satisfied: Flask-SQLAlchemy in /Library/Python/2.7/site-packages (2.3.2)
  Requirement already satisfied: Flask&gt;=0.10 in /Library/Python/2.7/site-packages (from Flask-SQLAlchemy) (1.0.2)
  Requirement already satisfied: SQLAlchemy&gt;=0.8.0 in /Library/Python/2.7/site-packages (from Flask-SQLAlchemy) (1.2.10)
  Requirement already satisfied: Jinja2&gt;=2.10 in /Library/Python/2.7/site-packages (from Flask&gt;=0.10-&gt;Flask-SQLAlchemy) (2.10)
  Requirement already satisfied: itsdangerous&gt;=0.24 in /Library/Python/2.7/site-packages (from Flask&gt;=0.10-&gt;Flask-SQLAlchemy) (0.24)
  Requirement already satisfied: Werkzeug&gt;=0.14 in /Library/Python/2.7/site-packages (from Flask&gt;=0.10-&gt;Flask-SQLAlchemy) (0.14.1)
  Requirement already satisfied: click&gt;=5.1 in /Library/Python/2.7/site-packages (from Flask&gt;=0.10-&gt;Flask-SQLAlchemy) (6.7)
  Requirement already satisfied: MarkupSafe&gt;=0.23 in /Library/Python/2.7/site-packages (from Jinja2&gt;=2.10-&gt;Flask&gt;=0.10-&gt;Flask-SQLAlchemy) (1.0)
  </code></pre>
  
  <p>The bit about me not owning the directory is incorrect. I'm the only one on this machine. I own everything. </p>
  
  <p>Anyway, I go back to rerun the file and get the same error message. So, it's installed, but not installed or, at the very least, not available to me. </p>
  
  <p>One error message I saw when I commented out one of the import statements read as follows:</p>
  
  <pre><code>File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/sqlalchemy/engine/strategies.py
  </code></pre>
  
  <p>I have no clue how to fix this and get SQLAlchemy up and running. I've burned over 1.5 hours on it. The last error listed suggests having 2 versions of python may have something to do with it. </p>
  
  <p>Your thoughts on a remedy would be appreciated. </p>