I installed GDAL and its Python bindings from GISInternals. While I believe that GDAL was installed correctly, the Python bindings have an issue.
After opening a file with gdal.open
I cannot read the file as an array. The error message is saying: No module named '_gdal_array'. I installed the following Python bindings: GDAL-2.1.0.win-amd64-py3.4.msi, but tried it before with the bindings for Python 2.7.
Then I read somewhere that the OsGeo4W project should be able to give you correct Python bindings. I went into the Lib-directory and selected the Python bindings, installed the library together with its dependencies. When the program was downloading the data for installation it was already clear that something was strange. During the installation then, I saw that some Python 2.7.4 stuff was going to be installed.
Python in my registry is 3.4 and the other Python, of version 2.7, that is installed belongs to ArcGIS and I rather want to have that stuff untouched...
All I can say is, that I cannot see that the OsGEO4W gave me anything useful. The Python bindings for Python 3.4 still do not allow me to read my data as array...
I need to have the Python bindings working properly for a 64-bit version of Python, and it seems as if I cannot get bindings that actually allow me to read my data as array.
Any help on how I can get the Python bindings to work correctly?
numpy.unique
fails. My arrays have shape of 25000, 25000! Hence, my efforts to get everything running in 64-bit. There is no MSVC on my system.Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
Python 3.4 is within the system path, as well as GDAL 2.1.0. The GDAL DATA variable is also set.numpy
and there are created several issues in the GISInternal tracker describing the problem. One of them has feedback from Tamaz Szekeres, but I'm not sure how far he got solving the problem.