I am working on Django project with virtualenv and connect it to local postgres database. when i run the project is says,
ImportError: No module named psycop
For me this simple command solved the problem:
sudo apt-get install postgresql postgresql-contrib libpq-dev python-dev
Then I can do:
pip install psycopg2