python - Have you installed pyodbc on Mac OS X Sierra (10.12)? -
i tried installing pyodbc on mac os x sierra. installed both python 2 , 3 via brew, , use virtualenv isolate required pacakges etc. first tried installing pip, failed, following: https://github.com/lionheart/django-pyodbc/wiki/mac-setup-to-connect-to-a-ms-sql-server, seemed going well, except actual pyodbc installation.
though have xcode , tools, working brew, i've had issues libraries seem expected part of apple's toolchain. specifically, i'm getting missing sql.h message:
clang -fno-strict-aliasing -fno-common -dynamic -g -o2 -dndebug -g -fwrapv -o3 -wall -wstrict-prototypes -dpyodbc_version=3.0.10 -dpyodbc_unicode_width=2 -umac_os_x_version_10_7 -i/applications/xcode.app/contents/developer/platforms/macosx.platform/developer/sdks/macosx10.8.sdk/usr/include -i/usr/local/cellar/python/2.7.12_2/frameworks/python.framework/versions/2.7/include/python2.7 -c /users/daniellamblin/pyodbc-3.0.10/src/buffer.cpp -o build/temp.macosx-10.11-x86_64-2.7/users/daniellamblin/pyodbc-3.0.10/src/buffer.o -wno-write-strings -wno-deprecated-declarations in file included /users/daniellamblin/pyodbc-3.0.10/src/buffer.cpp:12: /users/daniellamblin/pyodbc-3.0.10/src/pyodbc.h:52:10: fatal error: 'sql.h' file not found #include <sql.h> ^ 1 error generated. error: command 'clang' failed exit status 1 what's odd after using brew install unixodbc found have sql.h in /usr/local/cellar/unixodbc/2.3.4/include/ , files in there symlinked /usr/local/include/ doesn't seem getting picked setup script somehow.
has found right way work around this?
after upgrading sierra , updating xcode (and running accept license) tools aren't ready use. had rerun xcode-select --install downloaded more , able include headers indeed there due brew's unixodbc.
Comments
Post a Comment