DEV Community

Discussion on: Django + PostgreSQL Deployment on Railway App

Collapse
 
mr_destructive profile image
Meet Rajesh Gor

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
Enter fullscreen mode Exit fullscreen mode

If psycopg2 doesn't work, remove the packge from the requirements.txt file and add the psycopg2-binary package after installing.