Pip installed a module I want to use, but still getting "module not found" error

Viewed 78

I am trying to use the Python module Gdal. I have run pip install gdal and I recieve the message

Requirement already satisfied: gdal in c:\users\willy\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages (3.3.1)

and yet when I run import gdal in my Python IDE (I use Spyder), I still get the error no module named gdal

3 Answers

From the documentation it seems you have to call:

from osgeo import gdal

See here

Related