<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>I would have suggested to uninstall the offending proprietary
      software :-), but perhaps checking that PYTHONPATH or PYTHONHOME
      are not defined to an unexpected value will be sufficient<br>
    </p>
    <div class="moz-cite-prefix">Le 12/01/2022 à 19:24, Rafael Lima a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CY4PR16MB1653E193285E6C1C615721AAA5529@CY4PR16MB1653.namprd16.prod.outlook.com">
      <div>
        ## Expected behavior and actual behavior.
        <div><br>
        </div>
        <div>I installed gdal on a Windows environment using anaconda
          and tried using one of the .py scripts (e.g., ogrmerge.py). I
          expected the script to make use of the gdal installed in such
          an environment, but it seems that the script finds another
          gdal installation (screenshot below), thus throwing an error.
          My question seems to be related to the one in
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/69328298/cannot-run-a-py-which-requires-a-gdal-module-in-anaconda-prompt-nor-in-command">https://stackoverflow.com/questions/69328298/cannot-run-a-py-which-requires-a-gdal-module-in-anaconda-prompt-nor-in-command</a>,
          apparently unsolved. I was wondering what is the correct
          approach to make sure gdal scripts find the correct gdal?</div>
        <div><br>
        </div>
        <div>## Steps to reproduce the problem.</div>
        <div>create a conda environment:</div>
        <div>conda create -n test1 gdal</div>
        <div>activate the environment</div>
        <div>conda activate test1</div>
        <div>call a gdal .py script</div>
        <div>ogrmerge.py</div>
        <div><br>
        </div>
        <div>In my case, that throws an error apparently because the
          script uses another gdal installation:</div>
        <div><img class="w-1158 h-548" data-outlook-trace="F:1|T:1"
            src="cid:part1.66CDEAD4.863B431E@spatialys.com"><br>
        </div>
        <div><br>
        </div>
        <div>## Operating system</div>
        <div><br>
        </div>
        <div>Windows 10 Pro - 20H2 version </div>
        <div><br>
        </div>
        <div>## GDAL version and provenance</div>
        <div><br>
        </div>
        <div>GDAL==3.0.2 </div>
        <div>GDAL==3.4.0</div>
        <div><br>
        </div>
        <div>Thank you!</div>
        Rafael<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>