gdal_calc.py returns "The system cannot find the path specified." 与 Anaconda3

gdal_calc.py returns "The system cannot find the path specified." with Anaconda3

当我运行以下命令时:

python gdal_calc.py -A "C:\Users\Username\GDAL\Python\unwrappedPhase190118_20190106.vrt" -B "C:\Users\Username\GDAL\Python\connectedComponents190118_20190106.vrt" --outfile "C:\Users\Username\GDAL\Python\results190118_20190106_defo" --calc='((A*(B>0))/(4*pi)*5.546576)' --format=ENVI --NoDataValue=0 --overwrite

Shell returns:

The system cannot find the path specified.

我在 Win10 64 位上使用 Anaconda3。

这与 .vrt 文件无关。执行

conda init

并重新启动 anaconda 提示符。它应该再次初始化 conda 环境。

更新:我修复了它。我只将引号从 ' 更改为 " 并将 outfile 更改为仅 defo 并且有效!