---
title: "安装psycopg是出错：Error: pg_config executable not found."
author: "nilm61"
date: "2013-01-31T09:09:43Z"
tags: []
categories: ["操作系统"]
slug: "psycopg-error-pg-config-executable-not-found"
draft: false
lastmod: "2013-01-31T09:47:37Z"
id: 1780091
url: "https://nilm61.iteye.com/blog/1780091"
---

装psycopg是出错

 

 执行 python setup.py install

 

```
running build
running build_py
running build_ext
Error: pg_config executable not found.

Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.
```

 

需要安装postgresql-devel插件

 

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