How to Install and Uninstall python3-psycopg2 Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: July 03,2024

1. Install "python3-psycopg2" package

This guide let you learn how to install python3-psycopg2 on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python3-psycopg2

2. Uninstall "python3-psycopg2" package

This guide covers the steps necessary to uninstall python3-psycopg2 on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove python3-psycopg2 $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-psycopg2 package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python3-psycopg2
Priority: optional
Section: python
Installed-Size: 671
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: amd64
Source: psycopg2
Version: 2.6.1-1build2
Provides: python3.5-psycopg2
Depends: python3 (<< 3.6), python3 (>= 3.5~), libc6 (>= 2.14), libpq5 (>= 9.3~)
Suggests: python-psycopg2-doc
Filename: pool/main/p/psycopg2/python3-psycopg2_2.6.1-1build2_amd64.deb
Size: 128136
MD5sum: 523a62207584283e75d4825d78115ce0
SHA1: 1c11154f86268459ff9094733b8e5cf1d2a2d546
SHA256: 65a5780c43474737a829f95894369540e98f6606914e34ee79ecfc17be4e1ca6
Description-en: Python 3 module for PostgreSQL
psycopg is a PostgreSQL database adapter for the Python3 programming language
(just like pygresql and popy.) This is version 2, a complete rewrite of the
original code to provide new-style classes for connection and cursor objects
and other sweet candies. Like the original, psycopg 2 was written with the
aim of being very small and fast, and stable as a rock.
.
psycopg is different from the other database adapter because it was designed
for heavily multi-threaded applications that create and destroy lots of
cursors and make a conspicuous number of concurrent INSERTs or UPDATEs.
psycopg 2 also provides full asynchronous operations for the really brave
programmer.
.
The main advantages of psycopg2 are that it supports the full Python DBAPI-2.0
and being thread safe at level 2. It also includes some extensions to the
standard DBAPI-2.0 to allow for better thread performance.
Description-md5: 8f5ccf5f38f0965d243851578ccea66a
Homepage: http://initd.org/projects/psycopg
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y