Closed ensofter closed 2 years ago
Have you seen this?
No, bu thx. I will try
I'm currently getting this error under the exact same conditions. MacOS, m1 chip, Python 3.10, latest version of pyodbc. I've installed unixodbc with brew, but that has not resolved the issue. Should I open a new issue?
Check that you are not mixing x86 and arm versions. There's been a few recent issues here about that.
How do I check that in this case?
For posterity, and in case you haven't found a solution, I found this elsewhere and it resolved the problem for me (assuming pyodbc
and unixodbc
were already uninstalled):
brew install unixodbc
export LDFLAGS="-L/opt/homebrew/Cellar/unixodbc/2.3.9_1/lib"
export CPPFLAGS="-I/opt/homebrew/Cellar/unixodbc/2.3.9_1/include"
pip3 install pyodbc
I'm trying install pyodbc on python 3.10 macos m1 chip and get error
ERROR: Failed building wheel for pyodbc
then pip trying install by setup.py and again get error
DEPRECATION: Could not build wheels for pyodbc which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Environment
To diagnose, we usually need to know the following, including version numbers. On Windows, be sure to specify 32-bit Python or 64-bit:
Maybe you know how i can fix this problem?