6
PyCharm 2019不再与QGIS一起使用
自从PyCharm 2019更新以来,我无法加载QGIS Python模块。我也不能使用自动完成功能。我已经删除了缓存(通过使PyCharm中的缓存无效并且还通过删除用户设置目录中的“ system”文件夹),似乎没有任何作用。 在PyCharm中启动Python控制台并键入“ import qgis.core”时,出现以下错误: Traceback (most recent call last): File "<input>", line 1, in <module> File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.2\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "C:\OSGEO4~1\apps\qgis-ltr\python\qgis\core\__init__.py", line 27, in <module> from qgis._core import * File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.2\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line …