Loading

pyodbc 'x86_64-linux-gnu-gcc' failed

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

posted @ 2020-07-31 13:51  wswind  阅读(191)  评论(0编辑  收藏  举报