在Azure Data Studio中使用pyodbc:无驱动程序

2024-05-15 12:56:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我第一次在Azure Data Studio工作。我已经成功安装了“python”(3.7)和“pyodbc”(如果我尝试重新安装,我会得到一条消息,即依赖关系已经满足)。我还尝试在macOS上本地运行相同的脚本,结果相同:空列表。我在等一份司机名单。对可能发生的事情有什么想法吗

更新/解决方案: 我了解到MacOS的驱动程序将位于Library/ODBC中。如果该文件为空或不存在,则您没有可供pyodbc使用的驱动程序。 如果你没有驱动程序,那么你从某处得到它,所以在我的例子中here

enter image description here


Tags: 脚本消息列表data关系驱动程序macos解决方案
1条回答
网友
1楼 · 发布于 2024-05-15 12:56:08

只需让他人看到解决方案,感谢@MikeB2019x分享解决方案

For MacOS, drivers will be in Library/OBDC. If that is empty or non-existent then you have have no drivers for pyodbc to use. If you have no driver then you get it here.

相关问题 更多 >