运行labelImg时报错 ModuleNotFoundError: No module named ‘libs.resources‘ 您所在的位置:网站首页 labelcolour 运行labelImg时报错 ModuleNotFoundError: No module named ‘libs.resources‘

运行labelImg时报错 ModuleNotFoundError: No module named ‘libs.resources‘

2024-07-01 13:58| 来源: 网络整理| 查看: 265

现象

在github(https://github.com/tzutalin/labelImg)下载labelImg后,运行labelImg.py文件后,提示没有PyQt5模块和Sip模块,通过pip安装了两个模块后,运行出现以下错误: ModuleNotFoundError: No module named 'libs.resources'

解决

在官网(https://github.com/tzutalin/labelImg)看到以下方法

来自GitHub

运行了pyrcc4 -o libs/resources.py resources.qrc 还不行 但运行了pyrcc5 -o libs/resources.py resources.qrc 之后,就可以正常运行labelImg.py了 在这里插入图片描述

另外(更简单的方法)

直接pip安装 labelImg 更方便 pip install labelImg 很快(5秒)左右就可以安装成功,之后在cmd运行 labelImg 就可以运行软件了。很方便吧! 在这里插入图片描述

官网上,又有其他安装方法,有兴趣的自己去看看吧!



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有