When running Qt-based GUI applications (such as Qt Designer) on macOS, you must use a Framework build of Python.
It is recommended to install Python via Homebrew:
brew install python@3.13Alternatively, download the official macOS installer from the Python website (the official installer provides a Framework build by default).
Note
Adjust the Python version according to the actual version required by the project.
If a non-Framework build of Python is used, running GUI applications may result in the following error:
Unable to find Python library directory. Use a framework build of Python.
This is caused by macOS GUI runtime requirements and is unrelated to the project code.
When creating a virtual environment, you must explicitly specify the Framework build interpreter.
Note
python3.13 is only an example version and is not hardcoded.
You must select the Python version required by the project.
The required version can usually be found in the .python-version file located in the project root directory.
Example:
uv venv --python /opt/homebrew/bin/python3.13Replace 3.13 with the version required by the project.
Do not use:
-
The system default Python
-
A non-Framework build of Python
-
Any minimal or embedded Python build
On macOS:
-
Only
.app bundlebuilds are supported -
onefileis not supported -
onediris not supported
Therefore:
-
pyside-cli builduses bundle mode by default -
No additional parameters are required
If you require:
-
Single-file distribution (
onefile) -
Directory-based distribution (
onedir)
You must use PyInstaller as the build backend.
In the current version:
-
Self-update is disabled by default
-
No alternative update mechanism is provided
To update the application, manually download a new version or integrate a third-party automatic update solution.