- Download and install 32-bit Python 3.9 (this is the latest version that works with Access drivers) https://www.python.org/ftp/python/3.9.13/python-3.9.13.exe
- Create a virtualenv:
mkvirtualenv -p 3.9 pandas-32bit
- Install pandas 2.0.3 (the last with 32-bit wheels) and pyodbc:
pip install pandas==2.0.3 pyodbc sqlalchemy
- List drivers:
import pyodbc; pyodbc.drivers()
- the usual driver will beMicrosoft Access Driver (*.mdb, *.accdb)
- Connect using sqlalchemy:
DRIVER = "Microsoft Access Driver (*.mdb, *.accdb)"