1.
错误:ImportError: No module named qgis.core
结局方法:python的qgis,舒适化变量:
D:\PROGRA~1\QGIS3~1.0\OSGeo4W.bat
D:\PROGRA~1\QGIS3~1.0\bin\py3_env.bat
D:\PROGRA~1\QGIS3~1.0\bin\qt5_env.bat
SET PYTHONPATH=D:\PROGRA~1\QGIS3~1.0\apps\qgis\python;D:\PROGRA~1\QGIS3~1.0\apps\Qt5\plugins
SET PATH=D:\PROGRA~1\QGIS3~1.0\apps\Qt5\plugins;%PATH%
2.
错误:This application failed to start because it could not find or load the Qt platform plugin "windows"
in "".
解决方法:把 包含qwindows.dll的目录platform复制到 D:\Program Files\QGIS 3.0\bin
3.
错误:QgisProject.read和QgisVectorLayer构造失败
解决方法:
环境变量没有设定好,在qgis.bat基础上去掉启动qgis,增加环境变量PYTHONPATH
pyqgis学习
猜你喜欢
转载自www.cnblogs.com/adgnat/p/9025049.html
今日推荐
周排行