How to Install and Uninstall python3-pyodbc Package on Ubuntu 21.10 (Impish Indri)

Last updated: March 15,2025

1. Install "python3-pyodbc" package

Please follow the guidance below to install python3-pyodbc on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install python3-pyodbc

2. Uninstall "python3-pyodbc" package

This is a short guide on how to uninstall python3-pyodbc on Ubuntu 21.10 (Impish Indri):

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

3. Information about the python3-pyodbc package on Ubuntu 21.10 (Impish Indri)

Package: python3-pyodbc
Architecture: amd64
Version: 4.0.30-1build2
Priority: optional
Section: universe/python
Source: pyodbc
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Deepak Tripathi
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 365
Provides: python3.9-pyodbc
Depends: python3 (<< 3.10), python3 (>= 3.9~), libc6 (>= 2.29), libgcc-s1 (>= 3.0), libodbc1 (>= 2.3.1), libstdc++6 (>= 4.1.1)
Filename: pool/universe/p/pyodbc/python3-pyodbc_4.0.30-1build2_amd64.deb
Size: 89152
MD5sum: 2ed613d5501a976ec0185b32a94d3908
SHA1: 90be4264512abf53b9fac1ec696d32994ef6e8c0
SHA256: 79f460e68206761076b499747bc33664f309095c3af76ae2ea365cc8eaadf1c2
SHA512: 5e2ab8a673408d8be1f2390a44a402e6ab1121a159e75974d2fc99af1a72eec5ff361aa1dd0f9967a326af95602f72fec632d3c0fedb5d0dfb4ad79a6ac4104c
Homepage: http://mkleehammer.github.io/pyodbc/
Description-en: Python3 module for ODBC database access
A Python3 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: 5465274f0a4966139dc49f1cfe3cf9b3