Installation Guide
The only prerequisite for installing PySide6 is having Python installed on your system. PySide6 can be installed using the Python package manager conda, pip, or poetry.
Conda
If you use conda, you can install PySide6 from the conda-forge channel. Best practice is to use an environment for your PySide6 project, and not to install it in your base environment:
- Create and activate an environment:
- Download PySide6 from the
conda-forgechannel in the environment:
Pip
If you use pip, you can install PySide6 using the commands below. Also with pip, it is best practice to use a virtual environment. It is customary to use venv for this purpose. venv is built into Python and does not require any additional installation:
- Create and activate an environment:
- Activate the environment:
Windows : Unix / macOS: - Install PySide6 in the environment:
Poetry
If you use poetry, you can install PySide6 using the commands below. Also with poetry it is best practice to use a virtual environment. This virtual environment can be either a venv or conda environment.
- Create and activate an environment. See sections
pipandcondaabove on how to create and activate avenvorcondaenvironment, respectively. - Create a Poetry project, if you haven't already, and navigate to it:
- Add PySide6 to the project's
pyproject.tomlfile and install to the virtual environment: