Using an Access database (.mdb) with Python on Ubuntu [duplicate]
问题 This question already has answers here : Working with an Access database in Python on non-Windows platform (Linux or Mac) (4 answers) Closed 3 years ago . I'm trying to use pyodbc to access a .mdb on Ubuntu. I've based my progress so far on this link Query crashes MS Access I have installed pyodbc, unixodbc, and unixodbc-dev My code looks like this: import csv import pyodbc MDB = 'URY.mdb' DRV ='Microsoft Access Driver (*.mdb)' PWD = 'pass' conn = pyodbc.connect('DRIVER=%s;DBQ=%s;PWD=%s' %