-1

when i try to run this:

import pyodbc

i get this output:

  Traceback (most recent call last): File "/...projects/roof/testDF.py", line 1, in <module>
  import pyodbc
  ImportError: dlopen(/...projects/EnvSellers/lib/python3.11/site-packages/pyodbc.cpython-311-darwin.so, 0x0002): Library not loaded: /usr/local/opt/unixodbc/lib/libodbc.2.dylib
  Referenced from: <D23A4D34-B79E-35E4-88C9-80F238373822> /.../projects/lib/python3.11/site-packages/pyodbc.cpython-311-darwin.so
  Reason: tried: '/usr/local/opt/unixodbc/lib/libodbc.2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/unixodbc/lib/libodbc.2.dylib' (no such file), '/usr/local/opt/unixodbc/lib/libodbc.2.dylib' (no such file), '/usr/lib/libodbc.2.dylib' (no such file, not in dyld cache)

i try with a brew install unixodbc but isn't work.

how can i solve this?

0 Answers0