Newbie here. I've just loaded OSX Catalina on my iMac. I've installed GDAL 2.4 complete from the Kyngchaos site. The install works great for all GDAL commands except for the python ones (gdal_polygonize.py for example). Then I get this error:

-bash: /Library/Frameworks/GDAL.framework/Programs/gdal_polygonize.py:/Library/Frameworks/Python.framework/Versions/3.6/bin/python3: bad interpreter: No such file or directory

The python version I'm running is python 3.7.5

In my system there is no /Library/Frameworks/Python.frameworks folder. Instead, it seems to be here:

However, my PATH variable includes this folder:


What am I doing wrong? how do I fix this?


1 Answer 1


Was facing the same issue as well. After I downloaded and installed python using the macOS 64-bit installer for 3.6.5 from https://www.python.org/downloads/mac-osx/ , python was installed in the location /Library/Frameworks/Python.framework/Versions/3.6


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.