安装PYQT5
pip install PyQt5 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install PyQt5-tools -i https://pypi.tuna.tsinghua.edu.cn/simple
获得Python环境位置
查看函数库安装位置
pip show 函数库名
通过查询函数库,了解到python安装位置为 C:\Users\admin\.conda\envs\pyqt_env
安装VSCode相关插件 PYQT Integration
配置3个位置,Pyrcc、Pyuic、QtDesigner
Pyrcc path:python环境+\Scripts\pyrcc5.exe
Pyuic path:python环境+\Scripts\pyuic5.exe
QtDesigner path:python环境+\Lib\site-packages\PySide2\designer.exe
完成配置
以上已完成VSCode对PYQT的全部配置
下一章:PYQT的使用入门
参考链接
1.PyQt5实现多文件调用以及UI和逻辑分离 - 知乎 (zhihu.com)
PyQt5实现多文件调用以及UI和逻辑分离_pyqt5界面和逻辑分离-CSDN博客