Diagnosing "pg_config executable not found" Error During psycopg2 Installation
When attempting to install psycopg2 using pip, users may encounter the error "pg_config executable not found." Despite verifying that pg_config is present in the PATH, this issue can persist.
Resolving the Issue
This error typically arises due to missing or incorrect dependencies. The resolution involves installing the necessary package containing pg_config.
Linux:
Debian/Ubuntu:
Centos/Fedora/Cygwin/Babun:
After installing the appropriate package, try reinstalling psycopg2 using pip. This should resolve the "pg_config executable not found" error.
The above is the detailed content of Why Does psycopg2 Installation Fail with 'pg_config executable not found'?. For more information, please follow other related articles on the PHP Chinese website!