[gdal-dev] How to fix path for gdal .py scripts in Anaconda-Windows?
Mike Taves
mwtoews at gmail.com
Thu Jan 13 01:29:14 PST 2022
On Thu, 13 Jan 2022 at 07:25, Rafael Lima <raplima at hotmail.com> wrote:
> 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 stackoverflow, apparently unsolved. I was wondering what is the correct approach to make sure gdal scripts find the correct gdal?
Try calling the script directly using the CONDA_PREFIX environment
variable, i.e.:
(test1) C:\> python %CONDA_PREFIX%\Scripts\ogrmerge.py
More information about the gdal-dev
mailing list