import pyodbc
db_path='C:\my_path'
connection_string= "DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=%s;" %db_path
conn = pyodbc.connect(connection_string)
运行脚本
时发生此错误Traceback(最近一次调用最后一次):文件“C:\ my_path”,第25行,in conn = pyodbc.connect(connection_string)pyodbc.Error:('IM002','[IM002] [Microsoft] [Driver Manager ODBC] Nome origine dati non trovato e driver predefinito non specificato。 (0)(SQLDriverConnect)')
有人可以帮助我吗?