1安装psycopg2
PostgreSQL database adapter for the Python programming language. Its main features are the complete implementation of the Python DB API 2.0 specification and the thread safety (several threads can share the same connection). It was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a large number of concurrent “INSERT”s or “UPDATE”s.
下载psycopg2 下来,解压,到其所在文件目录下执行
sudo python setup.py install
报错:
2环境
- Mac OSX 10.11.2
- python 2.7
- 安装有 pgAdmin3.app