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

Last updated: May 14,2024

1. Install "python3-pyodbc" package

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

$ sudo apt update $ sudo apt install python3-pyodbc

2. Uninstall "python3-pyodbc" package

This tutorial shows how to uninstall python3-pyodbc on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: python3-pyodbc
Priority: optional
Section: universe/python
Installed-Size: 131
Maintainer: Ubuntu Developers
Original-Maintainer: Deepak Tripathi
Architecture: amd64
Source: pyodbc
Version: 3.0.7-0ubuntu2
Provides: python3.5-pyodbc
Depends: python3 (<< 3.6), python3 (>= 3.5~), libc6 (>= 2.14), libgcc1 (>= 1:3.0), libodbc1 (>= 2.3.1), libstdc++6 (>= 4.1.1)
Filename: pool/universe/p/pyodbc/python3-pyodbc_3.0.7-0ubuntu2_amd64.deb
Size: 42006
MD5sum: 003ba26e3b63792e83b890d0ce63f747
SHA1: f8b3ef2cc8bdbd4c69392d543c5602eb7b0febaf
SHA256: 1312026c441adde0246e1e15799126522fcfab93d48c49049fd53a57c92cf95c
Description-en: Python3 module for ODBC database access
A Python DB API 2 module for ODBC. No 3rd party libraries are required.
Only native Python datatypes are used, such as decimal and datetime.
It implements the Python Database API Specification v2.0.
For example:
import pyodbc
Next, create a connection by passing an ODBC connection string to the
connect method. This step causes ODBC to load the database driver (the SQL
Server driver in this example) and connect to the database.
cnxn = pyodbc.connect('DSN=northwind')
Description-md5: 2d66ed60280fd6458a6d3ce638ab142d
Homepage: http://code.google.com/p/pyodbc/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu