Installation on Fedora
Fedora ships a recent Python 3. sudo dnf install -y python3 python3-pip ensures the interpreter and pip are present. Unlike Debian/Ubuntu, venv is included in the standard library — no separate package.
Virtual environments
Create one per project: python3 -m venv .venv, then source .venv/bin/activate. Avoid sudo pip, which can break DNF-managed packages.
Alternate versions
Fedora packages several minor versions (for example python3.12) that install alongside the default interpreter, so you can target a specific one without disturbing the system Python.