-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Failed building wheel for gdal #150
Comments
Could you please paste here the full log? |
Here is the full log ! Cheers C:\TagLab-main>python.exe install.py |
Could you try installing the GDAL version provided by the Windows OSGeo package (GDAL-3.4.0-cp39-cp39-win_amd64.whl) and then running You can download the Windows binaries using conda or vcpkg, more info here: https://gdal.org/download.html#windows If the requirement is satisfied, then the installer should not try to build it locally (which is what is failing based on your original error message) |
I had the same issue. Tried pip install gdal and got:
I downloaded and installed Build Tools (installer), then installed C++ Build Tools core features, 2022 Redistributable Update, and core desktop features. I still get the same error. Does it have something to do with this statement "In order to enable numpy-based raster support, libgdal and its development headers must be installed " |
I tried installing the wheel (GDAL-3.8.4-cp310-cp310-win_amd64.whl ) as you suggested. It installed successfully.
|
Ok, I can try replicating this during the weekend on my Windows machine, but here are some bits that drew my attention:
Now, one option could be trying to install gdal 3.4.1 for Python 3.10 from any available wheel file (I haven't checked this yet), or modifying the setup.py to allow it to install another version of rasterio that is compatible with the currently installed gdal version (3.8.4). I am not sure about this last bit but worth trying. |
Python 3.9.13, CUDA 11.6, Visual studio build in.
Downloading gdal-3.9.1.tar.gz
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for gdal
Failed to build gdal
ERROR: Could not build wheels for gdal, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered: