arm64以及amd64和龙芯4000下安装pyqt:
包下载地址:
sip安装包地址:https://riverbankcomputing.com/software/sip/download
qt源码下载 http://download.qt.io/arhive/qt/
2.7下安装pyqt5:https://www.cnblogs.com/deeplearning1314/p/10671347.html
参考编译链接:
linux下安装qt:https://blog.csdn.net/u014523388/article/details/101453045
编译安装pyqt5:https://blog.csdn.net/mayifan0/article/details/120308364
遇到的错误及解决方法:
卸载python:
apt-get remove python3.x
卸载python及其依赖:
apt-get remove --auto-remove python3.x
清除python:
apt-get purge python3.x或者apt-get purge --auto-remove python3.x
Generating the C++ source for the QtCore module...Error: Unable to create the C++ code.:
目前应该是需要安装qt,所以下载qt源码进行安装
ModuleNotFoundError: No module named '_ctypes':
yum install libffi-devel -y或者apt-get install libffi-dev
E: 无法定位软件包 qt-sdk:
apt-get update
fatal error: Python.h: 没有那个文件或目录:
apt-get install python-dev
Error: PyQt5 requires Qt v5.0 or later. You seem to be using v4.8.7. Use the --qmake flag to specify the correct version of qmake:
apt-get install qt5-default