I installed GDAL on Mac and it was successful because when I type in the terminal : gdalinfo --version
it renders me the right version. The issue is when I switch to Pycharm or the default IDLE of Python and I run this simple program:
import sys
from osgeo import gdal
version_num = int(gdal.VersionInfo('VERSION_NUM'))
if version_num < 1100000:
sys.exit('ERROR: Python bindings of GDAL 1.10 or later required')
It returns me this error :
Traceback (most recent call last):
File "/Users/sigc2sige/Desktop/Zak/Gdal/app1.py", line 2, in <module>
from osgeo import gdal
ModuleNotFoundError: No module named 'osgeo'
Process finished with exit code 1
Any ideas please to solve this issue?