Easy Ways to Check Python Version in Windows CMD
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?
Table of contents
1. Use the Command Prompt
- Press Win + R, type cmd, and hit Enter.
- In the Command Prompt window, type the command below and press Enter.
python --version
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
- Open CMD as before.
- Start the interactive shell with the command below: python

- The Python interactive shell will open and show the version at the top.
- To exit, type the command below and press Enter:
exit()
Extra resources
- Learn how to run .py scripts correctly: how to open PY files.
- Handle coding errors more easily with this guide: Python try-except print error.
- Experiment with Python directly in your browser: Python in a browser.
FAQs
This usually means Python is not added to your system PATH. Reinstall Python and check the “Add Python to PATH” box during setup.
Both show the installed Python version. The py command uses the Python launcher, which may be installed separately.
Yes. With the Python launcher you can target versions using commands like py -2 or py -3.
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.
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
User forum
0 messages