Couldn't load PyQGIS.
Python support will be disabled.
Traceback (most recent call last):
File "", line 1, in
File "/home/xinkai/dev/cpp/QGIS/build-master/output/python/qgis/core/__init__.py", line 25, in
from qgis._core import *
ModuleNotFoundError: No module named 'PyQt5.QtPositioning'
Python version:
3.8.10 (default, Jun 2 2021, 10:49:15)
[GCC 9.4.0]
QGIS version:
3.21.0-Master 'Master', 53fcebcf9e
Python path:
['/home/xinkai/dev/cpp/QGIS/build-master/output/python', '/home/xinkai/.local/share/QGIS/QGIS3/profiles/default/python', '/home/xinkai/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/home/xinkai/dev/cpp/QGIS/build-master/output/python/plugins', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages']
from qgis._core import PyQt5.QtPositioning
在命令行 python 交互界面试试,看下这个包的更新说明,多半是版本问题
你指的是这个?
Python 3.8.10 (default, Jun 2 2021, 10:49:15)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
@echo_lovely: 是的,遇到 No modules named ... 之类的报错,直接在命令行开启对应报错的环境,进行引用尝试