I installed gdal using conda install -c conda-forge gdal
in my Jupyter terminal, but when I run the following code:
import gdal
gdal.Open('/Users/alyse/ldem.img')
gdal.Translate('/Users/alyse/ldem.img')
mpimg.read('/Users/alyse/ldem.img')
I get the following error: ModuleNotFoundError: No module named 'gdal'.
welp. If anyone has any advice I would very much appreciate! I am a coding beginner.
Try this: from osgeo import gdal
, it worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With