Install python-pyodbc by entering the following commands in the terminal:
sudo apt update sudo apt install python-pyodbc
Description:
Python 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')
Homepage: http://mkleehammer.github.io/pyodbc/
Version: 4.0.17-1
Section: universe/python