ModuleNotFoundError: No module named ‘PySide’

Python 3.11.0rc1 (main, Aug 12 2022, 10:02:14) [GCC 11.2.0] on linux
Type “help”, “copyright”, “credits” or “license()” for more information.

==================== RESTART: /home/piotr/python/data_base/00_qt.py ===================
Traceback (most recent call last):
File “/usr/lib/python3.11/idlelib/run.py”, line 578, in runcode
exec(code, self.locals)
File “/home/piotr/python/data_base/00_qt.py”, line 3, in
from PySide6.QtWidgets import QApplication, QWidget
ModuleNotFoundError: No module named ‘PySide6’

But in your Module list, you have:

PySide6 6.4.3 /home/piotr/.local/lib/python3.10/site-packages pip

… not python3.11, which is a contradiction in Python versions.

This is not a the final released python 3.11 its a release candidate.

If you OS does not have the release python 3.11 I suggest you use
python 3.10 that is a final version.

Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] on linux
Type “help”, “copyright”, “credits” or “license()” for more information.