I've installed GDAL from the wheel files available here on Python 3.4. I'm using an old version of Python because one of the packages I need doesn't work yet on Python 3.6.
When I try to import gdal in Python with a simple from osgeo import gdal, I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python34\lib\site-packages\osgeo\__init__.py", line 41, in <module>
_gdal = swig_import_helper()
File "C:\Python34\lib\site-packages\osgeo\__init__.py", line 37, in swig_import_helper
_mod = imp.load_module('_gdal', fp, pathname, description)
File "C:\Python34\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
ImportError: DLL load failed with error code -1073741795
I'm not sure this question is a duplicate of this question which suggests to install the pre-compiled GDAL from GIS internals.
conda install gdalworked perfectly for me and then you can update any package you want – Marcelo Villa Mar 24 '18 at 17:53Scikit-learnbut apparently the version for Python34 doesn't support MLP. The other problem is that the latest version ofDjangofor Python34 is v1.10, and I'm afraid the majority of Django plugins have moved to Django 2.0. – Hakim Mar 24 '18 at 18:08