ImportError: No module named psycopg2
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
You must login to ask question.
Recently faced this issue on my production server. I had installed pyscopg2 using
It worked beautifully on my local, but had me for a run on my ec2 server.
The above command worked for me there. Posting here just in case it would help someone in future.
For python3 on ubuntu, this worked for me:
i have the same problem, but this piece of snippet alone solved my problem.
Use psycopg2-binary instead of psycopg2.