To check the Python version on any operating system, run python --version or python -V in the command prompt, terminal, or PowerShell. If your system has both Python 2 and Python 3 installed, or if the python command is unavailable, use python3 --version instead.

  • Command Line: Open CMD, Terminal, or PowerShell and type the command above to see the output (e.g., Python 3.10.7).

  • Multiple Versions: On Windows, use the Python Launcher command py --list or py -0p to view all installed Python versions.

  • Inside a Script: Import the sys or platform module to check the version programmatically:

    import sys
    print(sys.version)
    # or
    import platform
    print(platform.python_version())
๐ŸŒ
Python
docs.python.org โ€บ 3
Python 3.14 documentation
Welcome! This is the official documentation for Python 3.14.3.
history of the Python programming language
The programming language Python was conceived in the late 1980s, and its implementation was started in December 1989 by Guido van Rossum at CWI in the Netherlands as a successor to ABC โ€ฆ Wikipedia
๐ŸŒ
Guru99
guru99.com โ€บ home โ€บ python โ€บ how to check python version on linux, mac & windows
How to Check Python Version on Linux, Mac & Windows
August 12, 2024 - However, before running this command, ensure that Python is pre-installed on the computer. Following is the command typed in the command line: ... Step 3) Type the below command in the Terminal of Linux to get the version name of Python.
๐ŸŒ
Windows Forum
windowsforum.com โ€บ forums โ€บ windows help and support forums โ€บ windows news
Check Python Version in Windows CMD: Quick Guide to Installers and Py Launcher | Windows Forum
August 26, 2025 - Exit with exit or Ctrl+Z then Enter. These commands are fast, work without adme source of truth for the interpreter that will run when you type python in that prompt. ... Installing packages with pip (some packages drop support for older versions).
๐ŸŒ
iO Flood
ioflood.com โ€บ blog โ€บ check-python-version
Check Python Version | Guide for Windows, Mac, and Linux
January 30, 2024 - The method of checking Python version largely remains the same across different operating systems, with minor differences. For instance, on Windows, youโ€™ll use the Command Prompt, while macOS and Linux users will use the Terminal.
๐ŸŒ
Hero Vired
herovired.com โ€บ learning-hub โ€บ topics โ€บ how-to-check-python-version
How to Check Python Version: Easy Commands for Every OS
February 10, 2025 - To check the Python version, follow the below steps: Open your terminal (use Win + R), type โ€œcmdโ€, and press ENTER. Run the following command:
๐ŸŒ
freeCodeCamp
freecodecamp.org โ€บ news โ€บ check-python-version-how-to-check-py-in-mac-windows-and-linux
Check Python Version โ€“ How to Check Py in Mac, Windows, and Linux
July 7, 2023 - To check the Python version on a Windows operating system, you can follow these detailed steps: Press the Windows key on your keyboard. Type "cmd" (without quotes) in the search bar. Click on the "Command Prompt" app from the search results.
๐ŸŒ
Cleancode
cleancode.studio โ€บ python โ€บ what-python-version-do-i-have
Clean Code Studio - What Python Version Do I Have?
This will print the version of Python, as well as some additional information about your Python installation.
Find elsewhere
๐ŸŒ
4Geeks
4geeks.com โ€บ how-to โ€บ how-to-check-python-version
How to check python version?
July 16, 2025 - 1import sys 2print (sys.version) 3#Output: 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] 1import platform 2print(platform.python_version()) 3#Output: 3.10.4
๐ŸŒ
Reddit
reddit.com โ€บ r/python โ€บ how do i check my python version using command line.?
r/Python on Reddit: How do i check my Python Version Using Command Line.?
October 21, 2018 -

Evening r/Python

The reason for this post is because i am having trouble checking my Python version using the command prompt. Am originally a Mac user, so not sure if the PC transition is what has me confused. Anyways, i know i have Python Version 3.7 installed in my system. However, when i run the python --version command line in both the regular command prompt and administrator command prompt, i get THIS error message.

How come.? This is not really about what version I'm running, as it is about me trying to use the pip install command to install packages. But i figured start at the begging so if command prompt won't even recognize my python installation, why first waste my time trying to figure out why is wont recognize the pip call.

Anyhow, any comments/suggestions would be greatly appreciated. Thank you in advance and good day.! Cheers.! :)

๐ŸŒ
Python
python.org โ€บ downloads โ€บ release โ€บ pymanager-261
Python Release Python install manager 26.1 | Python.org
1 week ago - To install using WinGet, the command is winget install 9NQ7512CXL7T. Full documentation for the Python install manager is available in our documentation. In particular, there are troubleshooting guides, as well as instructions around administrative installs, including intended use of the legacy MSI installer. Use of the Store app or the MSIX package is recommended. The install manager can install versions of Python as far back as 3.5, but only supports Windows 10 operating systems (or Windows Server 2022) and later.
๐ŸŒ
Python
python.org โ€บ downloads
Download Python | Python.org
Historically, most, but not all, Python releases have also been GPL-compatible. The Licenses page details GPL-compatibility and Terms and Conditions. ... For most Unix systems, you must download and compile the source code. The same source code archive can also be used to build the Windows and Mac versions, and is the starting point for ports to all other platforms.
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_pip.asp
Python PIP
Note: If you have Python version 3.4 or later, PIP is included by default. A package contains all the files you need for a module. Modules are Python code libraries you can include in your project. Navigate your command line to the location of Python's script directory, and type the following:
๐ŸŒ
PyTorch
pytorch.org โ€บ get-started โ€บ locally
Get Started
If you want to use just the command python, instead of python3, you can symlink python to the python3 binary. However, if you want to install another version, there are multiple ways:
๐ŸŒ
Alma Better
almabetter.com โ€บ bytes โ€บ articles โ€บ how-to-check-python-version
How to Check Python Version? (Linux, Windows and Mac)
January 12, 2024 - The terminal will display the installed Python version. Please note that in some cases, the command may return a screen full of information.
๐ŸŒ
Incorta Community
community.incorta.com โ€บ t5 โ€บ data-schemas-knowledgebase โ€บ how-to-check-the-version-of-a-python-package โ€บ ta-p โ€บ 4702
How to Check the Version of a Python Package - Incorta Community
July 21, 2023 - Use the __version__ attribute to check the Python package/library, __version__ attribute is recommended by PEP (Python Enhancement Proposals).
๐ŸŒ
SuperOps
superops.com โ€บ superops blog โ€บ blog โ€บ how to check the python version?
How to check the Python version in quick and easy steps
5 days ago - Here are several effective ways to determine the version of Python installed on your system: Open the command prompt by searching for โ€œcmdโ€ in the Start menu. If you are using MacOS, open Terminal by searching โ€œTerminalโ€ in the Spotlight search.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ check-the-version-of-the-python-interpreter
How to check Python Version : Windows, Linux and Mac - GeeksforGeeks
December 17, 2025 - If you installed Python using a package manager, you can use these tools to check the Python version. For Debian-based systems, such as Ubuntu, you can use `apt`: ... NOTE: These commands will provide detailed information about the Python version installed on your system.