AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |
Back to Blog
Mac install gdal for python 32/2/2023 ![]() ![]() Then, I downloaded and installed the python module for python 2.7 GDAL-1.11.3.win32-py2.7.msiĪnd after that, in python I was able to do from osgeo import gdalĪnother option is to install the Anaconda Python distribution which has packages for GDAL. GDAL_DATA = C:\Program Files (x86)\GDAL\gdal-data GDAL_DRIVER_PATH = C:\Program Files (x86)\GDAL\gdalplugins I first downloaded and installed the "Generic installer for the GDAL core components": gdal-111-1500-core.msiĪnd added the path and other variables as described here. (the build version numbers will change over time) Type "help", "copyright", "credits" or "license" for more information. To see what you have you can run python on the command line and a message like this: C:\>python In my case I have a 64 bit windows, but a 32 bit python 2.7 (that shipped with ArcGIS). ![]() Note that this has to match your python version, not your OS. Now you have to choose between 32 and 64 bits and different Microsoft Visual C compiler versions. Take the link to "stable releases" to get to: ![]() I was able to install GDAL and use it in python following the steps outlined here (this is the link provided by sends you to. ![]() I find OSGEO4W a poor solution because it creates a whole parallel universe, almost like a virtual machine. ![]()
0 Comments
Read More
Leave a Reply. |