#安装
防止出现报错:
①ERROR: Failed building wheel for PyQt5-sip
Failed to build PyQt5-sip
ERROR: Could not build wheels for PyQt5-sip, which is required to install pyproject.toml-based projects
②
用“VisualStudioSetup”即可解决报错:
#VisualStudioSetup下载
蓝奏云网盘
密码:faxj
按照图内的勾选,开始下载即可:
然后重新执行下面命令安装:
pip install pyqt5 -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install pyqt5-tools -i https://pypi.tuna.tsinghua.edu.cn/simple/
#Pycharm中查看是否安装成功:配置
#Designer
姓名:designer
程序:[python解释器路径]\Lib\site-packages\qt5_applications\Qt\bin\designer.exe
组:External Tools
实参:$FileName$
工作目录:$FileDir$
#PyUic
ui文件编译输出py文件
姓名:PyUic
程序:[python解释器路径]\Scripts\pyuic5.exe
组:External Tools
实参:$FileName$ -o Ui_$FileNameWithoutExtension$.py
工作目录:$FileDir$
#PyQrc
qrc资源文件编译输出py文件
姓名:PyQrc
程序:[python解释器路径]\Scripts\pyrcc5.exe
组:External Tools
实参:$FileName$ -o $FileNameWithoutExtension$_rc.py
工作目录:$FileDir$