pip安装pyqt5-tools的时候Preparing metadata (pyproject.toml) error

遇到了,未解决,在这里卡主了

python 版本3.10.5

 python 3.10上安装pyqt5_染指13的博客-CSDN博客_python安装pyqt5

解决办法(有人说要降级Python3.9啥的,或者降pyqt5的版本,我看都不需要)

python 3.10 安装 Pyqt5-tools的替代方法 - 知乎 (zhihu.com)

 

解决方法:直接安装PyQt5Designer

安装成功

 

运行环境:python3.10.5,win11

运行后窗口如下

 

 

测试代码如下

import sys
from PyQt5.QtWidgets import QMainWindow, QApplication
from PyQt5.QtGui import QIcon


class MainWindow(QMainWindow):

    def __init__(self):
        super().__init__()
        self.resize(400, 200)
        self.status = self.statusBar()
        self.status.showMessage("welcome to earth", 5000)
        self.setWindowTitle("hello world")


if __name__ == "__main__":
    app = QApplication(sys.argv)
    form = MainWindow()
    form.show()
    sys.exit(app.exec())

 

posted on 2022-10-15 21:27  风中狂笑  阅读(8507)  评论(0编辑  收藏  举报

导航