Python uses the psycopg2 module to operate PostgreSQL, psycopg2postgresql
In fact, there are many modules in Python that can be used to connect to PostgreSQL. Here we recommend psycopg2. Psycopg2 is very easy to install (pip install psycopg2). Here
Run python on ubuntu to connect to pg. the following error occurs: ImportError: No module named psycopg2, ttupythonRun python on ubuntu to connect to pg. The error ImportError: No module named psycopg2 is returned.Root @ pgproxy1 :~ #
Installation of psycopg2 on Windows and UbuntuLinux encountered an episode, recording the following Windows: 1. click here to go to the official website to download the source code 2. decompress 3. run pythonsetup. pyinstall error solution: the
Notes for installing psycopg2 on Ubuntu
Install psycopg2 on Windows and Ubuntu Linux.
Windows:
1. Click here to go to the official website to download the source code
2. Extract
3. Run python setup. py install and report an error.
Solution: the
Today, when installing PSYCOPG2 under centos6.5 and using Python to connect to the PostgreSQL database, there was a undefined symbol:lo_truncate6 error: Django.core.exceptions.ImproperlyConfigured:Error loading PSYCOPG2
Pip Install PSYCOPGPython PSYCOPG2 Module APIsThe following is an important module routine for PSYCOPG2 to meet the Python program's work with the PostgreSQL database.
S.N.
API & Description
1
psycopg2.connect
Introduction to the Python development ecosystemAuthor:Mir NazimOriginal article:Python Ecosystem-An IntroductionTranslator:Dccrazyboy
When developers switch from PHP, Ruby, or other development environments to Python, the biggest problem is lack of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.