Я могу быть, неправильно понял Ваш вопрос, но делает ниже не, работают на Вас?
Кажется, это проблема " Python Path ". Библиотеки Python ищутся по заданному пути. Попробуйте
import sys
sys.path
. Если каталог, в котором находится gdal.py и связанные файлы, отсутствует в этом списке, Python не может его найти. Это для части "диагностики". Чтобы исправить ситуацию, у вас есть несколько вариантов ... Все они зависят от знания правил, которые Python использует для построения этого пути.
Единственное место, где я видел правила, относящиеся к построению sys.path, ранее описанные в" официальной "документации Python, - это учебник , в разделе 6.1.2
Выдержка:
modules are searched in the list of directories given by the variable sys.path which is initialized from the directory containing the input script (or the current directory), PYTHONPATH and the installation- dependent default. This allows Python programs that know what they’re doing to modify or replace the module search path. Note that because the directory containing the script being run is on the search path, it is important that the script not have the same name as a standard module, or Python will attempt to load the script as a module when that module is imported. This will generally be an error. See section Standard Modules for more information.
Вот ссылка, которая учит, как установить и использовать Python + GDAL, OGR и другие инструменты.
Надеюсь, это будет полезно.
Вы также можете проверить GDAL Wiki, посвящённую привязкам к Python - GdalOgrInPython, где обсуждается установка и использование на платформах Linux и Windows.