qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory

执行

qmake -v


出现错误:qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory

分析:
qtchooser默认选择路径中没有指向qmake路径

解决方法:

cd /usr/lib/x86_64-linux-gnu/qt-default/qtchooser
sudo  rm default.conf

重新安装Pyqt5

sudo apt-get install qt5-default
sudo apt-get install qttools5-dev-tools

 

posted @ 2018-12-21 22:36  傻蛋儿  阅读(1511)  评论(0编辑  收藏  举报