首页 新闻 会员 周边 捐助

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

0
悬赏园豆:10 [已解决问题] 解决于 2022-01-19 09:46
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 | 小虾三级 | 园豆:1584
提问于:2021-09-26 21:28
< >
分享
最佳答案
1

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

收获园豆:10
〆灬丶 | 老鸟四级 |园豆:2314 | 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.
>>> 
echo_lovely | 园豆:1584 (小虾三级) | 2021-09-27 14:00

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

〆灬丶 | 园豆:2314 (老鸟四级) | 2021-09-27 15:22
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册