安装labelImg时出错:'pyrcc5'无法识别为内部或外部命令,可操作程序或批处理文件

问题描述 投票:0回答:1

我正在尝试为Tensorflow对象检测API安装lalbelImg。

一切正常,直到我尝试运行命令:

pyrcc5 -o libs/resources.py resources.qrc

它给我错误:

'pyrcc5' is not recognized as an internal or external command,
 operable program or batch file.

我在Windows 10上并且具有Python 3.5.4

我正在关注tzutalin的Github上的Windows教程。

链接:https://github.com/tzutalin/labelImg#user-content-windows

PS:我不使用Anaconda。

python image-recognition object-detection-api labelimg pyrcc
1个回答
0
投票

结果是我必须提供完整的目录。

C:\Python35\Scripts\pyrcc5 -o C:\Desktop\labelImg\libs\resources.py C:\Desktop\labelImg\resources.qrc

复制该内容并根据需要更改目录。

祝您有美好的一天! -CodeLover


0
投票

这表示您未指定路径

设置路径

搜索编辑环境变量->环境变量->新建->在此添加该路径

未指定路径时发生此错误

© www.soinside.com 2019 - 2024. All rights reserved.