Easy Ways to Check Python Version in Windows CMD


check python version windows cmd
XINSTALL BY CLICKING THE DOWNLOAD FILE
A message from our partner

Fix Windows 11 OS errors with Fortect:

  • Download Fortect and install it on your PC
  • Launch the tool and Start scanning to find broken files that are causing the problems
  • Right-click on Start Repair to fix issues affecting your computer’s security and performance
Download Now Fortect has been downloaded by 0 readers this month, rated 4.6 on TrustPilot

Python is widely used for apps, automation, and web development. Before running scripts, it’s important to confirm which version is installed on your Windows PC.

How to check Python version in Windows CMD?

1. Use the Command Prompt

  1. Press Win + R, type cmd, and hit Enter.
  2. In the Command Prompt window, type the command below and press Enter.
    python --version
    python cmd

The installed version will appear, for example: Python 3.11.5.

If this does not work, try the Python launcher instead:

py --version

2. Check version in the Python interpreter

  1. Open CMD as before.
  2. Start the interactive shell with the command below: python
    python version cmd
  3. The Python interactive shell will open and show the version at the top.
  4. To exit, type the command below and press Enter: exit()

Extra resources

FAQs

Why does python –version not work in CMD?

This usually means Python is not added to your system PATH. Reinstall Python and check the “Add Python to PATH” box during setup.

What is the difference between python –version and py –version?

Both show the installed Python version. The py command uses the Python launcher, which may be installed separately.

Can I have multiple Python versions on Windows?

Yes. With the Python launcher you can target versions using commands like py -2 or py -3.

Do I need admin rights to check the Python version?

No. Running python –version or py –version in CMD works without admin rights.

Using CMD to check Python’s version takes seconds and helps prevent compatibility issues. With these quick commands, you will always know your setup is ready.

More about the topics: command prompt, python

Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

User forum

0 messages