I have been trying to install psycopg2 in PyCharm, but I keep running into this error:
>>> pip install psycopg2
File "<input>", line 1
pip install psycopg2
^
SyntaxError: invalid syntax
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: ImportError: No module named 'psycopg2'
. I'm a beginner to PyCharm--and, frankly, to Python development--so any help would be greatly appreciated.