On this page

Set up Python development environment

With the Qt Python extension pack, you can develop Qt for Python applications with VS Code and Python:

  • Install PySide6 packages
  • Create Qt for Python applications with Qt Quick or Qt Widgets based UIs
  • Build, run, and clean the applications
  • Debug the applications with debugpy and QML debugger
  • Read Qt for Python documentation

Install PySide6 for the project

The recommended way to run PySide6 projects from VS Code is to install PySide6 for each project. Qt Extension for VS Code prompts you to do so the first time you open a .py file for a project.

To install PySide6 for the project later:

  1. Go to Command Palette, and select Qt: Install PySide6.
  2. Select Create environment to create a new virtual environment for the project. To use an existing environment, select Select environment.

Create virtual environment with uv

If you have installed the uv Python package manager and set it in PATH, you can use it to create the virtual environment:

  1. Go to Command Palette, and select Qt: Create virtual environment with uv.
  2. Select Create environment to create a new virtual environment for the project. To use an existing environment, select Select environment.

See also Installation, Tutorial: Qt Quick and Qt for Python, Create Qt projects, Debug Qt for Python applications, and Read Qt documentation.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.