<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Saad,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
You probably have followed the steps to use Python2 on Anaconda3 [<a href="https://docs.anaconda.com/anaconda/user-guide/tasks/switch-environment/">https://docs.anaconda.com/anaconda/user-guide/tasks/switch-environment/</a>]</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
But did you install GDAL on both environments independently? Can you run "gdalinfo --version" while "py2" is activated? </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
We all know that DLL error messages are very misleading, "DLL load failed" might be related to a third part library. But that message doesn't seem to be 32/64 platform.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Worse thing you can do is to uninstall Anaconda3 to start fresh. The installer is not going to work.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Ivan</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gdal-dev <gdal-dev-bounces@lists.osgeo.org> on behalf of Arthur Morgan <saadbaloch444@gmail.com><br>
<b>Sent:</b> Saturday, October 24, 2020 3:47 AM<br>
<b>To:</b> gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org><br>
<b>Subject:</b> [gdal-dev] DLL load failed: The specified module could not be found</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hello,
<div>I have Anaconda latest 64-bit built on Windows 10, and the current environment is running on Python 2.7. Now, I installed GDAL via <span style="background-color:rgb(238,239,240); color:rgb(51,51,51); font-family:Consolas,"Liberation Mono",Courier,monospace; font-size:16px">conda
 install -c conda-forge gdal</span></div>
<div><br>
</div>
<div>But when the script calls GDAL, it throws the following error:</div>
Traceback (most recent call last):<br>
  File "format_snow_params.py", line 20, in <module><br>
    from osgeo import gdal<br>
  File "D:\ProgramData\Anaconda3\envs\py2\lib\site-packages\osgeo\__init__.py", line 25, in <module><br>
    _gdal = swig_import_helper()<br>
  File "D:\ProgramData\Anaconda3\envs\py2\lib\site-packages\osgeo\__init__.py", line 21, in swig_import_helper<br>
    _mod = imp.load_module('_gdal', fp, pathname, description)<br>
<div>ImportError: DLL load failed: The specified module could not be found.</div>
<div><br>
</div>
<div>Please advise what to do?</div>
<div> </div>
<div>
<div>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">Kind Regards,
<div>Saad Baloch</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>