我试过在mac上安装pyodbc,但是我收到了这个错误
Traceback (most recent call last):
File "Untitled.py", line 1, in <module>
import pyodbc
ImportError: dlopen(/usr/local/lib/python3.6/site-packages/pyodbc.cpython-36m-darwin.so, 2): Library not loaded: /usr/local/opt/unixodbc/lib/libodbc.2.dylib
Referenced from: /usr/local/lib/python3.6/site-packages/pyodbc.cpython-36m-darwin.so
Reason: image not found
它可能是什么,我该如何解决?
答案 0 :(得分:1)
查看unixodbc的安装是否对您有帮助
“简单安装unixodbc”
答案 1 :(得分:0)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
如果未找到brew,则将该命令粘贴到MAC终端中。 之后 - brew install unixodbc