Hello.
I’m not familiar with odbc, but it seems that installing pyodbc doesn’t install any drivers. At least, executing pyodbc.dirvers()
returns empty list. So you probably need to install/download driver manually. Then explicitly setting DRIVER = "/path/to/driver"
instead of using implicit {ODBC Driver 17 for SQL Server}
may help.