wsl2 debian中安装pyodbc失败了,记录解决方法
依赖:
apt-get install python3-dev unixodbc-dev -y
sqlserver odbc:
https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server
连接串:
"DRIVER={ODBC Driver 17 for SQL Server};Server=..; Database=xx; UID=xx;PWD=xx;"
参考: https://github.com/mkleehammer/pyodbc/issues/276