python3 -c "import sys; print(sys.version)"

After activating a virtual environment (e.g., source venv/bin/activate ), the python --version command will specifically reflect the version assigned to that virtual environment .

If it returns a path, you are inside a virtual environment.

Open your terminal. The most common command is:

If you are debugging a broken Python installation (e.g., missing SSL support), knowing the version isn't enough. You need to know how it was compiled.

That's it! The most common command you'll use is simply python3 --version .