ubuntu上跑python连接pg,报错 ImportError: No module named psycopg2

前端之家收集整理的这篇文章主要介绍了ubuntu上跑python连接pg,报错 ImportError: No module named psycopg2前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
apt-get install -y python-psycopg2 python-psycopg2-doc python-psycopg2-dbg
 
sudo apt-get build-dep python-psycopg2


Error: You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application

 install: apt-get install postgresql-server*
原文链接:https://www.f2er.com/ubuntu/355720.html

猜你在找的Ubuntu相关文章