psycopg2 not found by django after installing in virtualenv
Solution 1:
Installing with sudo (sudo pip install ...
) causes the installed files to be owned by root, and Django (run without sudo) cannot read them. You can sudo pip uninstall psycopg2
and then install without sudo. (If that doesn't work, try sudo chown -R $USER ~/.virtualenvs/myvenv
first (assumes that's your virtualenv path).