vscode pyqt 环境搭建

第1步:安装PyQt5和PyQt5-tools

下载 python3

添加环境变量

C:\Users\admin\AppData\Local\Programs\Python\Python38-32

C:\Users\admin\AppData\Local\Programs\Python\Python38-32\Scripts

安装:

pip3 install -i https://mirrors.aliyun.com/pypi/simple/ PyQt5

pip3 install -i https://mirrors.aliyun.com/pypi/simple/ PyQt5-tools

第二步在VScode安装

 PYQT Integration

第三步 :很关键

配置  PYQT Integration

vscode pyqt 环境搭建_第1张图片

 

vscode pyqt 环境搭建_第2张图片

vscode pyqt 环境搭建_第3张图片

 

vscode pyqt 环境搭建_第4张图片

 

vscode pyqt 环境搭建_第5张图片

 

 

vscode pyqt 环境搭建_第6张图片

{
    "pyqt-integration.pyuic.compile.filepath": "${ui_name}.py",
    "pyqt-integration.qtdesigner.path": "C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python37\\Lib\\site-packages\\pyqt5_tools\\Qt\\bin\\designer",
    "python.pythonPath": "C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python37",
    "python.autoComplete.extraPaths": [
    
    
    ],
    "editor.semanticTokenColorCustomizations": null,
    "pyqt-integration.pyuic.cmd": "C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python37\\Scripts\\pyuic5"
}

 

你可能感兴趣的:(Python)