I installed anaconda onto my system and tried numerous ways of installing GDAL each time on Spyder it gives me the same response: ImportError: No module named gdal
I wrote the program just as follows:
import gdal
Ran it then that error
Tried:
import osgeo import gdal
same issue.
So then I installed the Anaconda prompt. And it seemed to install anaconda when I typed in:
conda install -c conda-forge gdal
I went back to Spyder and got the same error.
Any ideas of why this is happening?
In the Anaconda prompt I wrote: gdalinfo --version And got back:
GDAL 2.2.4, released 2018/03/19
All seems up to date except when I run in Spyder