Installation
- brew install unixodbc
- pip uninstall pyodbc
- pip install —no-binary :all: pyodbc
- install drivers for 18 (copy and paste bash code), https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos?view=sql-server-ver15
- run python code and get connected
Ref
https://github.com/mkleehammer/pyodbc/issues/1124#issuecomment-1539193343