Showing psycopg2 error in deploying

Hey @abhay121-pixel
I had a very similar problem to this. While deploying, it gave me the same error message “pg_config executable not found”, and “If you prefer to avoid building psycopg2 from source, please install the PyPi ‘psycopg2-binary’ package instead.”

So that’s exactly what I did. One of the modules in my “requirements.txt” was psycopg2. I changed that to psycopg2-binary, and voila! It worked!