1、添加源服务器
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
2、创建运行环境
# 创建虚拟环境
conda create --name pyqt6-python3.8 python=3.8
# 激活环境
conda activate pyqt6-python3.8
# 安装PyQt6
pip install PyQt6 -i https://pypi.tuna.tsinghua.edu.cn/simple/
# 安装PyQt6-tools
pip install PyQt6-tools -i https://pypi.tuna.tsinghua.edu.cn/simple/
3、vscode安装PYQT Integration插件
# pyuic6
D:\RJ\Miniconda\envs\pyqt6-python3.8\Scripts\pyuic6.exe
# Path of Qt designer
D:\RJ\Miniconda\envs\pyqt6-python3.8\Lib\site-packages\qt6_applications\Qt\bin\designer.exe