Skip to content

Instantly share code, notes, and snippets.

@kmatt
Created February 24, 2022 03:10
Show Gist options
  • Select an option

  • Save kmatt/6ef2450eba640d477e253cc2242d57ea to your computer and use it in GitHub Desktop.

Select an option

Save kmatt/6ef2450eba640d477e253cc2242d57ea to your computer and use it in GitHub Desktop.
PyODBC on M1 Mac
# brew install unixodbc
export CPPFLAGS="-I/opt/homebrew/Cellar/unixodbc/2.3.9_1/include"
export LDFLAGS="-L/opt/homebrew/Cellar/unixodbc/2.3.9_1/lib -liodbc -liodbcinst"
export PKG_CONFIG_PATH="/opt/homebrew/Cellar/unixodbc/2.3.9_1/lib/pkgconfig $PKG_CONFIG_PATH"
pip install --no-binary pyodbc pyodbc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment