python2.7源码编译安装pyqt5

参考连接:https://blog.csdn.net/weixin_30876945/article/details/95315599

下载PyQt5源码
https://pypi.org/project/PyQt5/#files
解压文件,然后编译安装
tar -xzvf PyQt5-5.15.5.tar.gz
cd PyQt5-5.15.5
python configure.py --sip-incdir=/usr/include/python2.7
make -j4
sudo make install
出现问题解决方式
执行make时,若报错strip:/usr/bin/pyuic5:不可识别的文件格式,则利用gedit打开Makefile文件,注释该句后重新sudo make install
gedit Makefile

注释 -strip $(INSTALL_ROOT)/usr/bin/pyuic5

原文地址:https://www.cnblogs.com/stacso/p/15440486.html