[ debian使用python的pg数据库 ]


debian中和使用psycopg2,pgsql

在apt源中添加

deb http://ftp.de.debian.org/debian sid main 

安装依赖 本地依赖

apt install python3-psycopg2

安装 python包

pip install psycopg2