Skip to content Skip to sidebar Skip to footer

Gdal Will Not Import After Several Installs (mac Osx)

Using Macports, I've tried to install: gdal, py27gdal, and gdal-grass. All so I can import gdal into python 2.7.2. Neither have been successful. When I type: port list installed

Solution 1:

Are you using the MacPorts python2.7? Try launching Python this way:

/opt/local/bin/python2.7

Solution 2:

I'm not 100% sure if this solves your problem, but gdal is in the osgeo namespace. So you should try importing gdal like this:

from osgeo import gdal

The gdal namespace itself is deprecated.

Post a Comment for "Gdal Will Not Import After Several Installs (mac Osx)"