Wechat: yu389741| Email: gisdqy@163.com

Shop:https://www.giserdqy.com/shop

Python连接PostgreSQL


1、安装PG的client以及函数库:
yum install postgresql
yum install postgresql-devel
2、安装Python的函数库:
yum install python-devel
3、下载pscopg
wget http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz
4、解压后进入目录
python setup.py build
python setup.py install

这里的【函数库】我乱翻译的,大概这么个意思
转载自:https://blog.csdn.net/iteye_9789/article/details/82447723