pip install psycopg2 not working with postgresql 16 on debian 12
Summary A pip install psycopg2 command failed during native extension compilation with the error /usr/bin/ld: cannot find实际情况 -lpq, preventing successful installation. This occurred on a Debian 12 system after installing PostgreSQL 16.11, but did not occur with PostgreSQL 16.8 on an identical OS version. Root Cause The PostgreSQL development package (libpq-dev) was missing on the … Read more