ubantu16.04终端里make qt4py2时报错:make: *** No rule to make target 'qt4py2'。 停止。

解决办法:1.sudo apt-get install pyqt4-dev-tools

                    2.sudo pip install lxml 或者 pip install lxml 或者 sudo apt-get install python-lxml

                    3.此时若直接运行命令:make qt4py2则会报上面的错误。这时,应该进入LabelImg目录后使用make编译:make all,执行完之后,继续执行命令:sudo python labelImg.py(我发现若不加sudo而直接执行python labelimg.py则会报错ImportError:No module named PyQt4),此时就会打开labelImg啦。

猜你喜欢

转载自blog.csdn.net/FJY_sunshine/article/details/82424646