![](https://img-blog.csdnimg.cn/img_convert/23b1886f6c21d3cf53be903d121924e9.png)
找到labelImg.py文件中的PyQt4将其替换为PyQt5,替換后还是会出现图示中ImportError,需要卸载PyQt5,再重新安装。
使用普通的卸载和安装还是会报错,如下:
![](https://img-blog.csdnimg.cn/img_convert/37ba5968eb0a0fffaf17fda412839e4a.png)
最后我直接删除文件夹再重新安装即可(本人版本为pyqt5.14.1)
![](https://img-blog.csdnimg.cn/img_convert/ffb06037848d80435242b2381819be49.png)
![](https://img-blog.csdnimg.cn/img_convert/d9cb1d0319befc4bb0afb2514d7c0faf.png)
![](https://img-blog.csdnimg.cn/img_convert/7fc6d36d57d594516105f64eb7b1b014.png)
![](https://img-blog.csdnimg.cn/img_convert/8d67db62a5a762c72e968dcbf9a0ae19.png)
找到labelImg.py文件中的PyQt4将其替换为PyQt5,替換后还是会出现图示中ImportError,需要卸载PyQt5,再重新安装。
使用普通的卸载和安装还是会报错,如下:
最后我直接删除文件夹再重新安装即可(本人版本为pyqt5.14.1)