tar -zxvf psycopg2-2.7.3.tar.gz
cd psycopg2-2.7.3
python3 setup.py build
python3 setpy.py install
四、问题记录
#报错如下:
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'.#解决方案
rpm -ivh python-devel-2.6.6-51.el6.x86_64.rpm