Hi list, when I run "pip install gdal", I got:
Collecting gdal Using cached gdal-3.11.3.tar.gz (878 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: gdal Building wheel for gdal (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for gdal (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [149 lines of output] C:\Users\sgong\AppData\Local\Temp\pip-build-env-o0cgxn7k\overlay\Lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:82: SetuptoolsWarning: `license` overwritten by `pyproject.toml` corresp(dist, value, root_dir) C:\Users\sgong\AppData\Local\Temp\pip-build-env-o0cgxn7k\overlay\Lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:82: SetuptoolsWarning: `extras_require` overwritten in `pyproject.toml` (optional-dependencies) corresp(dist, value, root_dir) Using numpy 2.3.2 ... ... gnm_wrap.cpp osr_wrap.cpp extensions/gdal_array_wrap.cpp(3381): fatal error C1083: Cannot open include file: 'gdal.h': No such file or directory extensions/gnm_wrap.cpp(3378): fatal error C1083: Cannot open include file: 'gdal.h': No such file or directory extensions/osr_wrap.cpp(3436): fatal error C1083: Cannot open include file: 'cpl_string.h': No such file or directory error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.44.35207\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 [end of output] 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: Failed to build installable wheels for some pyproject.toml based projects (gdal)
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev