title: Trying to install psycopg2 in PyCharm
body: <p>I have been trying to install psycopg2 in PyCharm, but I keep running into this error:</p>
  
  <pre><code>&gt;&gt;&gt; pip install psycopg2
  File "&lt;input&gt;", line 1
  pip install psycopg2
            ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>I've already managed to install psycopg2 in a virtualenv outside of PyCharm. However, PyCharm doesn't recognize that installation, and it seems that I have to install it separately from inside PyCharm. As a result when I run the project in PyCharm I get this error: <code>ImportError: No module named 'psycopg2'</code>. I'm a beginner to PyCharm--and, frankly, to Python development--so any help would be greatly appreciated.</p>