There might be problems in the psycopg2 package installation, so I have already mentioned in the post:
pip install psycopg2
# If it does not work try
pip uninstall psycopg2
pip install psycopg2-binary
pip freeze >requirements.txt
# if still error persists try installing setuptools
pip install -U setuptools
pip install psycopg2
If psycopg2 doesn't work, remove the packge from the requirements.txt file and add the psycopg2-binary package after installing.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
please help me out with this error
There might be problems in the psycopg2 package installation, so I have already mentioned in the post:
If psycopg2 doesn't work, remove the packge from the requirements.txt file and add the psycopg2-binary package after installing.