【问题标题】:QGIS 3.16.6 : Couldn't load SIP moduleQGIS 3.16.6:无法加载 SIP 模块
【发布时间】:2021-04-30 20:04:22
【问题描述】:

在Windows 10上,QGIS 3.16的启动过程中,我习惯遇到一个关于python的问题:

Couldn't load SIP module.
Python support will be disabled.

Traceback (most recent call last):
File "", line 1, in
File "C:/PROGRA1/QGIS31.16/apps/qgis-ltr/./python\qgis_init_.py", line 70, in
from qgis.PyQt import QtCore
File "C:/PROGRA1/QGIS31.16/apps/qgis-ltr/./python\qgis\PyQt\QtCore.py", line 24, in
from PyQt5.QtCore import *
ImportError: DLL load failed: The specified procedure could not be found.

我在以前版本的 QGIS 中遇到过这个问题,并且能够通过安装最新的 QGIS 版本来解决这个问题,但过了一段时间这个错误又回来了。如果出现此问题,则 QGIS 不会加载地理处理工具,并且大部分时间都无法使用。

【问题讨论】:

    标签: qgis


    【解决方案1】:

    如果您也是 anaconda 用户,则当 anaconda 更新 python 包时,此问题的根源可能来自此处。 在我的情况下,我可以通过删除那些文件夹来解决问题:

    C:\Users\%USERNAME%\AppData\Roaming\QGIS
    C:\Users\%USERNAME%\AppData\Roaming\Python
    

    参考:https://github.com/qgis/QGIS/issues/31367

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-12
      • 2011-03-08
      • 2021-08-27
      • 2021-01-11
      • 2015-02-09
      • 1970-01-01
      • 2016-10-09
      • 2012-09-07
      相关资源
      最近更新 更多