当我尝试在Google Colab中安装Pyodbc库时出现错误

时间:2020-09-02 11:33:31

标签: google-colaboratory pyodbc pypyodbc

当我尝试在google colab中安装pyodbc库时,出现以下错误

ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-v_fceyma/pyodbc/setup.py'"'"'; __file__='"'"'/tmp/pip-install-v_fceyma/pyodbc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-t34764b1/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

我使用!apt install unixodbc-dev来安装pyodbc,但是当我执行插入查询时。它引发了另一个下面的错误:

Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'SQL Server' : file not found (0) (SQLDriverConnect)")

任何人都可以让我知道,从头到尾还有什么需要做的。

0 个答案:

没有答案