[osgeo4w-dev] Import OSGeo4W/Gdal from Python

Thomas Juntunen junt0015 at umn.edu
Fri Apr 24 08:28:06 PDT 2015


On Fri, Apr 24, 2015 at 10:20 AM, Max Andela <andelamax38 at gmail.com> wrote:

> Dear Thomas,
>
> Thanks for your information. yes, it really worked from OSGeo4W command
> shell.
>
> I also tried to import gdal from Python idle. I set Path environment
> variable to "C:\OSGeo4W64\bin" and PYTHONPATH variable to
> "C:\OSGeo4W64\apps\Python27". But could not import the gdal from Python
> idle.
>

​Max,

I haven't used idle, so I'm not sure how to configure it, but I use Komodo
IDE (there is a free Komodo Edit that works similarly), which allows me to
select which python to use. When I still used the OSGeo4W distro, that
worked fine. PyCharm can also do this and probably many other editors.

HTH,
Thomas​


-- 
*The right coordinate system can turn an impossible problem into two really
hard problems. -- Charlie Pellerin*

Thomas Juntunen
GIS Specialist
Polar Geospatial Center
R280 Learning and Environmental Science
1954 Buford Ave
University of Minnesota
St. Paul, MN 55108
612-626-0505
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/osgeo4w-dev/attachments/20150424/c083d533/attachment-0001.html>


More information about the osgeo4w-dev mailing list