Python 3.10/3.11 Side-by-Side Notes
2023/07/24
F38 defaults to Python 3.11.4, so the “python” and the “python3.11” commands are the same.
To use Python 3.10.x on this system:
sudo dnf install -y python3.10-libs python3.10-debug python3.10-devel python3.10
and then
python3.10
Launches a Python 3.10.12 shell.
To use a virtual environment set to this python version,
mkdir moz-python
(make sure you are in the BASH shell, say by typing the command “bash
“)
python3.10 -m venv moz-python
source moz-python/bin/activate