2

I install FWTools in Windows7 and run FWTools Shell,after type gdal2tiles,but give error 'no module named osgeo' . enter image description here

also i installed OSGEO4W ,but another error to happen

enter image description here

mhkyazd
  • 121
  • 3
  • 1
    Your 2nd screenshot shows that you are not using "OSGEO4W Shell". Without it, some environment variables for GDAL are not loaded hence your second issue http://www.qgistutorials.com/en/_images/54.png. To open it, see https://raw.githubusercontent.com/Tapir79/pics/master/plg6.png – ThomasG77 Jan 13 '16 at 08:02

1 Answers1

4

It's simply because FWTools is so old that it does not use osgeo Python namespace as illustrated at the bottom of the GDAL Python section about import

You should install GDAL via OSGEO4W or GIS internal instead of using the outdated FWTools

ThomasG77
  • 30,725
  • 1
  • 53
  • 93