python-pyodbc-failed

sqlalchemy连接mssql服务器

安装依赖 pyodbc的时候报错:

1
2
3
4
5
src/pyodbc.h:56:17: fatal error: sql.h: No such file or directory
#include <sql.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

解决方案:

1
sudo apt-get install unixodbc-dev
你的支持我的动力