mkleehammer / pyodbc

Python ODBC bridge
https://github.com/mkleehammer/pyodbc/wiki
MIT No Attribution
2.88k stars 561 forks source link

Can't install #1286

Closed kevCurnow closed 9 months ago

kevCurnow commented 9 months ago

Was trying to run pip install pyodbc, but got an error that says Microsoft Visual C++ 14.0 or greater is required. I already have visual studio, but went ahead and downloaded the build tools just in case. Currently working with the latest version of python (3.12.0). Is it not supported yet?

v-chojas commented 9 months ago

What's the exact message?

kevCurnow commented 9 months ago

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

ERROR: Failed building wheel for pyodbc

ERROR: Could not build wheels for pyodbc, which is required to install pyproject.toml-based projects

MavericSB commented 9 months ago

I ran into similar issues when building a docker container yesterday as well (from python:3-bullseye). I saw there's an open PR for for 3.12 support but it hasn't been merged yet #1275. I'm thinking the wheels for 3.12 are not being built and published to PyPI? I personally rolled back to 3.11.6 and had no issues, but I would suspect there's desire to expand support to 3.12.0.

kevCurnow commented 9 months ago

Yes, just needed to rollback