You installed Python 3.11 but python3 --version shows 3.10.

This lists all versions installed via pyenv. The * indicates the currently active one.

The most common way to check your version is through the command line. Open your terminal (often using Ctrl+Alt+T ) and enter one of these commands:

Sometimes you need to check the version from inside a Python script itself (perhaps to block users from running your code on an incompatible version).

For most modern Linux distributions like Ubuntu 26.04 or Linux Mint, you can use the following terminal commands: python3 --version Shorthand Check python3 -V Detailed Build Info python3 -VV Check Python 2 python --version (if installed) 1. Using the Terminal to Check Version

Here is the "full story" on checking Python versions in Linux. It covers the commands, why things are often confusing (the python vs. python3 split), how to handle virtual environments, and how to check the actual configuration of your installation.

New features added in a backward-compatible way. Micro (2): Bug fixes and security patches.