首页 新闻 搜索 专区 学院

Ubuntu 启动抛异常No module named 'PyQt5.QtPositioning'

0
悬赏园豆:10 [待解决问题]
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']
echo_lovely的主页 echo_lovely | 菜鸟二级 | 园豆:291
提问于:2021-09-26 21:28
< >
分享
所有回答(1)
1

from qgis._core import PyQt5.QtPositioning
在命令行 python 交互界面试试,看下这个包的更新说明,多半是版本问题

| 园豆:723 (小虾三级) | 2021-09-27 09:34

你指的是这个?

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.
>>> 
支持(1) 反对(0) echo_lovely | 园豆:291 (菜鸟二级) | 2021-09-27 14:00

@echo_lovely: 是的,遇到 No modules named ... 之类的报错,直接在命令行开启对应报错的环境,进行引用尝试

支持(1) 反对(0) | 园豆:723 (小虾三级) | 2021-09-27 15:22
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册