1

I wanted to install latest version of GDAL (2.3) in Python 2.7.15 32 bits. I usually install the gdal core and bindings from www.gisinternals.com for my python version (msc 1500). However, for version of GDAL 2.3 there is only available for msc 1900 and 1911 which I dont know what version of Python correspond to, but not mine (maybe Python 3?). So, is there no GDAL 2.3 for version 2.7.15? Anyone knows?

12
  • gisinternals.com/… has GDAL 2.3 in Python 2.7 32bit installer, the link is named GDAL-2.3.1.win32-py2.7.msi. Commented Aug 5, 2018 at 23:34
  • Yes, but according to the installation tutorials I have seen so far, you are supposed to install the version according to your compilation (msc): sandbox.idre.ucla.edu/sandbox/tutorials/… Commented Aug 5, 2018 at 23:38
  • 1
    I think you're out of luck. The MSVC 2015/17 Python 2.7 packages are probably only there as they would get built by default for each compiler version. You will probably have issues if you try to use MSVC > 2008 packages. I suggest either submitting a ticket, using miniconda/Anaconda or moving to Python 3 and accepting the fact that Python 2 is very nearly EOL and that people are going to start dropping support for it.
    – user2856
    Commented Aug 5, 2018 at 23:51
  • 1
    Try it and see, the major and minor versions are the same so it's only a subversion different. If it doesn't work then uninstall it.. it's a lot less drastic than dumping python 2.7 which, if you have ArcGIS, you can't do. Commented Aug 6, 2018 at 0:03
  • 1
    No. It's because Python 2.7 is compiled using MSVC 2008 (1500) so any binary libs (i.e GDAL) need to be compiled with MSVC 2008. Try MSVC 2015 or 17 (1900/1911) versions if you like. It may work for you, though I can tell you from experience, it's never worked for me, causes hard crashes and segfaults. But then again it's been a few years since I've bothered to try.
    – user2856
    Commented Aug 6, 2018 at 1:37

0

Browse other questions tagged or ask your own question.