Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

use gdal python bindings from the QGIS folder in a custom script

$
0
0

I have QGIS installed (on Windows) and can import this line from the QGIS Python console:

from osgeo import gdal

When I try the import in a python file it doesn’t work

Traceback (most recent call last):
  File "C:/Users/xxx/loader.py", line 6, in <module>
    from osgeo import gdal
ImportError: No module named osgeo

How can I use the osgeo lib outside from qgis?


Viewing all articles
Browse latest Browse all 397

Trending Articles