Yaa I got the error as what you (Michal Petrucha) stated about that the path of GDAL_LIBRARY_PATH that I had given was of Linux. Now I changed the path (given below) according to the windows OS , still the problem is not resolved. GDAL_LIBRARY_PATH = 'C:\\Users\\gaurav\\Anaconda3\\Lib\\site-packages\\django\\contrib\\gis\\gdal'
Also I have reinstalled GDAL from https://sandbox.idre.ucla.edu/sandbox/tutorials/installing-gdal-for-windows and followed all the steps provided in this website, but still the problem is not resolved. Now I have given this path GDAL_LIBRARY_PATH = 'C:\\Program Files\\GDAL\\gdal203.dll' in settings.py . May be that now I have two GDAL libraries, one installed using OSGeo4W installer <https://trac.osgeo.org/osgeo4w/> and the other using the above link and now they are conflicting. On Tue, Oct 2, 2018 at 12:19 PM Michal Petrucha < michal.petru...@koniiiik.org> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > On Mon, Oct 01, 2018 at 03:02:18PM -0700, vaibhav.gupta_c...@gla.ac.in > wrote: > > I have installed PROJ4, GDAL and GEOS libraries using OSGeo4W installer > > <https://trac.osgeo.org/osgeo4w/>. But the problem is with GDAL > library. > > Earlier there was an error showing :- > > django.core.exceptions.ImproperlyConfigured: Could not find the GDAL > > library (tried "gdal202", "gdal201", "gdal20", "gdal111", "gdal110", > > "gdal19"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in > > your settings. > > > > Then after setting the path using GDAL_LIBRARY_PATH = > > '/home/sue/local/lib/libgdal.so' in settings.py file the error changes > to > > what I have stated before which is :- > > OSError: [WinError 126] The specified module could not be found. > > If you used '/home/sue/local/lib/libgdal.so', then that would be > incorrect – you write that you're trying to run this on Windows, but > this is a Unix path, so of course Python won't find that file there. > > Replace that with the full path to your GDAL DLL, and if you use > backslashes as a directory delimiter, make sure to either use a raw > string literal (r'c:\path\to\my\gdal.dll'), or double-backslashes > ('c:\\path\\to\\my\\gdal.dll'). > > Michal > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > > iQIcBAEBCgAGBQJbsxTVAAoJEHA7T/IPM/klLA0QANjRJZjywvglG74qJQujhyK3 > F0FkcN6RVXlwZv2XBq21NufpItQ5kWwnPWEFfA0LwCfIIqrwbsQu2Al1r6xaq29U > uq7cgZDNCfvfMrqnG7sVoqddkJN9taIkl0z+KQtaqg1rsfTdNZa6esKBc062+rCO > HhqrAbHZaUaYkenfvMXp1Qe3GBN6taJ+5banbBoWs1ipeUYK3v+ltLkv8sN4ipHg > Fcj5FKHv1ldt2pE88JvVwGxcrW6cpngKjElZZTjgTDGokC2v7kptCVkkj3KJWPNv > VR+OK0FWwsJdF2uZ3eni9v/MNBTCMe1b8m/ZM6tU2aWW3+8EqznMaX82I+8RMOtS > dPwvTk5To7DwVhm6tQtaO1+abdf/pZ6X76hWwusGbmbCW/Mn04S66CMM+TgVGhSX > LyQZajgYKq6qyt6C/YkNO1wkGNNY8eaDVSotdRMXd9oDpg9xVwx2jwVuGRMBhsVi > 2Oou19GTU9GLfOLAC3pEGU3/724ZfLBWP+dCksHtTLrRqU0u9KhEtbrLUrutfDUG > rdWxpmKMjkwyZ7oZt4kLu+ZTEuu2tYU4G770Vq3Z4Ui1HbBYX0QNIEiwhTXehx+a > 3vNZ0I5M9idu9kfgrPFmthYb69eWi2cZuPbOMoC1lBm0JrVE5v8L4NwEKx0Itp7u > i/QDsOX/rzuTUQyvnOq3 > =VilN > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/20181002064854.GZ1181%40koniiiik.org > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA0Ai3ZXV5MviEmGo_UKU_XVTZfPoXEjs6eu0ULRw05w-mW8Rw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.