<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Further on this, I've tried to generate the bindings myself by duplicating swig/python/<a href="http://setup.py.in">setup.py.in</a> and replacing the template variables. However I'm running into this error when I run <font face="monospace">C:\Users\ma005968\AppData\Local\Programs\Python\Python313\python.exe setup.py</font></div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr"><font face="monospace">gdal_wrap.cpp</font></div><div dir="ltr"><font face="monospace">c1xx: fatal error C1083: Cannot open source file: 'extensions/gdal_wrap.cpp': No such file or directory</font></div><div dir="ltr"><font face="monospace">gnm_wrap.cpp</font></div><div dir="ltr"><font face="monospace">c1xx: fatal error C1083: Cannot open source file: 'extensions/gnm_wrap.cpp': No such file or directory</font></div><div dir="ltr"><font face="monospace"><br></font></div><div><font face="arial, sans-serif">The readme.rst isn't incredibly clear on how to generate the python bindings myself and this was my understanding of how to do it as running the cmake command there wasn't working either.</font></div></div></div></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Sep 29, 2025 at 3:08 PM Mazin Marwan <<a href="mailto:mazin.marwan0@gmail.com">mazin.marwan0@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>I've installed GDAL 3.11.4 using VCPKG and am now trying to generate the python bindings using:</div><div><br></div><div><font face="monospace">pip install gdal</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">However I'm running into the following error:</font></div><div><font face="arial, sans-serif"><br></font></div><div><div><font face="monospace">ERROR: Failed building wheel for gdal</font></div><div><font face="monospace">Failed to build gdal</font></div><div><font face="monospace">error: failed-wheel-build-for-install</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">× Failed to build installable wheels for some pyproject.toml based projects</font></div><div><font face="monospace">╰─> gdal</font></div></div><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">A bit of research online has led me to believe that the pip version is just broken and that the fix is installing a .whl file from cgholke's geospatial wheels repo but that seems like a workaround instead of a proper fix. Is there another way to fix this?</font></div></div></div>
</blockquote></div>