我想用SQLAlchemy的 我google搜索,并试图以多种方式安装pyodbc连接MSSQL服务器一样面对障碍安装pyodbc和pymssql在Ubuntu 16.04
pip install pyodbc
遵循这个链接Pyodbc installation error on Ubuntu 16.04 with Sql Server installed ,但并没有解决 以下类型错误时,抛出
src/pyodbc.h:56:17: fatal error: sql.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for pyodbc
每引用你的问题,你有没有尝试通过PIP安装pyodbc之前安装的unixODBC? 'sudo apt-get install unixodbc-dev' – jinksPadlock
jinksPadlock是的我已经在pyodbc之前安装了unixODBC –
我已经使用sudo apt-get install unixodbc-dev和pip安装pyodbc来安装它,但是它显示下面的错误“”没有指定驱动程序名称; “(pyodbc.Error)('IM002','[IM002] [unixODBC] [驱动程序管理器]未找到数据源名称,未指定默认驱动程序(0)(SQLDriverConnect)')” –