title: Python ImportError: DLL load failed while importing
body: <p>On Windows, I have an environment having <code>Python==3.9.6'</code> installed. I have a strange issue. Having two packages <code>rasterio==1.2.6</code>  and <code>h5py==3.3.0</code> installed, either of these two packages are imported first, working well, but the second one is having the following error:</p>
  <pre class="lang-py prettyprint-override"><code>import rasterio
  # Imported fine!
  
  import h5py
  Traceback (most recent call last):
    File &quot;C:\Users\amin_\Anaconda3\envs\minusone\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3441, in run_code
      exec(code_obj, self.user_global_ns, self.user_ns)
    File &quot;&lt;ipython-input-4-c9f0b8c65221&gt;&quot;, line 1, in &lt;module&gt;
      import h5py
    File &quot;C:\Program Files\JetBrains\PyCharm 2021.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py&quot;, line 21, in do_import
      module = self._system_import(name, *args, **kwargs)
    File &quot;C:\Users\amin_\Anaconda3\envs\minusone\lib\site-packages\h5py\__init__.py&quot;, line 33, in &lt;module&gt;
      from . import version
    File &quot;C:\Program Files\JetBrains\PyCharm 2021.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py&quot;, line 21, in do_import
      module = self._system_import(name, *args, **kwargs)
    File &quot;C:\Users\amin_\Anaconda3\envs\minusone\lib\site-packages\h5py\version.py&quot;, line 15, in &lt;module&gt;
      from . import h5 as _h5
    File &quot;C:\Program Files\JetBrains\PyCharm 2021.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py&quot;, line 21, in do_import
      module = self._system_import(name, *args, **kwargs)
    File &quot;h5py\h5.pyx&quot;, line 1, in init h5py.h5
    File &quot;C:\Program Files\JetBrains\PyCharm 2021.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py&quot;, line 21, in do_import
      module = self._system_import(name, *args, **kwargs)
  ImportError: DLL load failed while importing defs: The specified procedure could not be found.
  </code></pre>
  <p>And :</p>
  <pre class="lang-py prettyprint-override"><code>import h5py
  # Imported!
  
  import rasterio
  
  Traceback (most recent call last):
    File &quot;C:\Users\amin_\Anaconda3\envs\minusone\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3441, in run_code
      exec(code_obj, self.user_global_ns, self.user_ns)
    File &quot;&lt;ipython-input-3-350e27267e59&gt;&quot;, line 1, in &lt;module&gt;
      import rasterio
    File &quot;C:\Program Files\JetBrains\PyCharm 2021.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py&quot;, line 21, in do_import
      module = self._system_import(name, *args, **kwargs)
    File &quot;C:\Users\amin_\Anaconda3\envs\minusone\lib\site-packages\rasterio\__init__.py&quot;, line 9, in &lt;module&gt;
      from rasterio._base import gdal_version
    File &quot;C:\Program Files\JetBrains\PyCharm 2021.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py&quot;, line 21, in do_import
      module = self._system_import(name, *args, **kwargs)
  ImportError: DLL load failed while importing _base: The specified procedure could not be found.
  
  </code></pre>