我正在尝试在Mac上使用Pypyodbc连接到SQL Server,但是我遇到了以下错误:
pypyodbc.DatabaseError: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'FreeTDS' : file not found")
我已经安装了freeTDS和unixodbc
brew install unixodbc
brew install freetds
以下是我的带有虚拟数据的连接字符串:
connection_String = "Driver=FreeTDS;Server=123.12.12.12;tds_version=7.2;Database=db_db;Uid=username:pwd=password:port=1433"