Closed derrick-anderson closed 3 years ago
Have you tried this?
sudo apt install libpq-dev
It solved the issue for me.
That will install the build tools necessary yes, however its smaller and less friction to include the binary instead of the source as a dependency.
I did put up a pr for that change.
From
https://pypi.org/project/psycopg2-binary/
The binary package is a practical choice for development and testing but in production it is advised to use the package built from sources.
Bug Description Project installation dependencies
requirements.txt
file has listed a dependency on the build library ofpsycopg2
When installing the project dependencies users are presented with the following error:
Steps to Reproduce Steps to reproduce the behavior:
. venv/bin/activate
pip3 install -e .
Expected behavior All library dependencies should be expressed in the requirements file.
Actual behavior An undocumented dependency on the python buildtools prevents project setup.
OS and Code tested
Account Number d0026812cc809bc29c85da6646b288350083d47d4b9a6ab37986f50b7e486653