cod*_*ver 6 python qt tensorflow pyrcc labelimg
我正在尝试为 Tensorflow 对象检测 API 安装 lalbelImg。
一切都很顺利,直到我尝试运行命令:
pyrcc5 -o libs/resources.py resources.qrc
Run Code Online (Sandbox Code Playgroud)
它给我错误:
'pyrcc5' is not recognized as an internal or external command,
operable program or batch file.
Run Code Online (Sandbox Code Playgroud)
我使用的是 Windows 10,并且使用的是 Python 3.5.4
我正在关注 tzutalin 的 Github 上的 Windows 教程。
链接: https: //github.com/tzutalin/labelImg#user-content-windows
PS:我不使用Anaconda。
小智 7
对我有用的是在我激活的 conda 环境中并安装 pyqt5-tools
(labelimg) C:\Users\user>pip install pyqt5-tools
Run Code Online (Sandbox Code Playgroud)
然后cd到labelimg文件夹
(labelimg) C:\Users\user>cd C:\Users\user\labelimg
Run Code Online (Sandbox Code Playgroud)
然后这两个都起作用了
(labelimg) C:\Users\user\labelImg>pyrcc5 -o resources.py resources.qrc
(labelimg) C:\Users\user\labelImg>pyrcc5 -o libs/resources.py resources.qrc
Run Code Online (Sandbox Code Playgroud)
我通过遵循此论坛中的一些建议得到了这个解决方案 https://github.com/heartexlabs/labelImg/issues/971
结果我必须提供完整的目录。
C:\Python35\Scripts\pyrcc5 -o C:\Desktop\labelImg\libs\resources.py C:\Desktop\labelImg\resources.qrc
Run Code Online (Sandbox Code Playgroud)
复制粘贴该内容并根据需要更改目录。
祝你有愉快的一天!- 代码爱好者
归档时间: |
|
查看次数: |
33719 次 |
最近记录: |