windows系统 python3.8以上版本使用GDAL报错解决方案
On Windows, with Python >= 3.8, DLLs are no longer imported from the PATH.If gdalXXX.dll is in the PATH, then set the USE_PATH_FOR_GDAL_PYTHON=YES environment variableto feed the PATH into os.add_dll_
·
windows python3.8使用GDAL报错解决方案
Windows系统在 python3.8以上版本安装GDAL后, 使用报错:
On Windows, with Python >= 3.8, DLLs are no longer imported from the PATH.
If gdalXXX.dll is in the PATH, then set the USE_PATH_FOR_GDAL_PYTHON=YES environment variable
to feed the PATH into os.add_dll_directory().
此报错一般是一些软件如SNAP,QGIS等,使用旧版本的gdal生成了openjp2.dll
文件。把这个文件移除即可正常运行。
不过为了不影响其他软件使用,建议安装使用3.1及以下版本的GDAL
conda install gdal=3.1 -c conda-forge -y
更多推荐
所有评论(0)