> ## Content Index
> Fetch the complete content index at: https://sgpublic.xyz/llms.txt
> Use this file to discover other available public pages before exploring further.

# 安装 psycopg2 时报错 "pg_config executable not found"
- URL: https://sgpublic.xyz/p/2021/12/6aac9cb1810a4800015335ef/
- Published: 2021-12-04T14:34:26.000Z
- Updated: 2021-12-04T14:34:26.000Z
- Author: Haven Madray
- Tags: 软件开发, Python, #wp-post

CentOS 7 安装 postgresql-devel

```
yum install postgresql-devel*
```

再次安装 psycopg2 即可。