import pg (postgres) in python codes, you need to install 'python3-postgresql'
or search it as follows:
$ sudo apt-cache search python3-postgresql 如果不行,试试
$ sudo apt-get install python-pygresql
本文介绍如何在Python中安装PostgreSQL数据库驱动程序。通过使用sudo apt-cache search python3-postgresql或sudo apt-get install python-pygresql命令,可以成功安装并实现Python与PostgreSQL之间的交互。
import pg (postgres) in python codes, you need to install 'python3-postgresql'
or search it as follows:
$ sudo apt-cache search python3-postgresql 如果不行,试试
$ sudo apt-get install python-pygresql
1453
1810
804
1274

被折叠的 条评论
为什么被折叠?