Python runs everything from small automation scripts to large-scale machine learning pipelines. Version compatibility is one of the first things that breaks when something stops working — a library that requires Python 3.10 won’t install cleanly on 3.8, syntax from Python 3.12 won’t run on 3.9, and virtual environments tied to a specific interpreter behave unexpectedly when the wrong one is active. Checking your Python version in CMD is the fastest diagnostic step before any of that confusion begins, and it takes about ten seconds flat.

Opening CMD on Windows
Three ways to get there — pick whichever is fastest for you.
Windows + R shortcut: Press both keys simultaneously. A small Run dialog appears. Type cmd and press Enter.
Start menu search: Click the Start button or press the Windows key, type cmd in the search bar, and click Command Prompt from the results.
Right-click method: Right-click the Start button directly and select Terminal or Command Prompt from the quick-access menu. Available on both Windows 10 and Windows 11.
All three open the same black command window. Once the cursor is blinking, you’re ready.
The Primary Command
Type this exactly and press Enter:
python –version
If Python is installed and properly configured on your system’s PATH, the response appears immediately:
Python 3.14.5
That’s the entire output — clean, direct, one line. The current stable release as of mid-2026 is Python 3.14.5, though many production environments still run Python 3.12 or 3.13 for compatibility with mature third-party libraries.
The Short Version: python -V
A faster alternative that produces identical output. Note the capital V — lowercase produces nothing useful:
python -V
Output:
Python 3.14.5
Both commands do the same thing. Developers working across multiple environments often prefer -V simply because it requires fewer keystrokes. Either one works reliably on all Windows versions.
The py Launcher Alternative
Windows installations of Python come with the Python Launcher — a small utility that manages multiple Python versions on the same machine. If the standard python –version command throws an error but Python is installed, try this instead:
py –version
The py launcher checks all installed Python versions and returns the default. It also lets you target a specific version:
py -3.12 –version
This is particularly useful on machines running multiple Python environments where the active version in PATH may not be the one you want to confirm.
Checking the Python Compiler Version
Developers compiling .py source files need the Java Development Kit’s Python equivalent — the full Python installation including the compiler. Run this to verify:
python -c “import sys; print(sys.version)”
This command drops into Python briefly and prints the full version string including the build date and architecture:
3.14.5 (main, May 10 2026, 09:12:31) [MSC v.1943 64 bit (AMD64)]
More detail than –version alone — useful when you need to confirm the exact build for debugging or documentation.
When CMD Returns an Error
The most common failure looks like this:
‘python’ is not recognized as an internal or external command,
operable program or batch file.
Two causes. Either Python isn’t installed at all, or it is installed but the system’s PATH environment variable doesn’t include Python’s folder, so CMD can’t locate the executable.
To verify Python exists but PATH is misconfigured, run:
dir “C:\Program Files\Python314”
If files appear, Python is installed. Fix the PATH by searching for Environment Variables in the Windows Start menu, opening System Properties → Environment Variables, finding the Path variable under System Variables, clicking Edit, and adding the path to your Python installation’s root folder and its Scripts subfolder — for example: C:\Python314\ and C:\Python314\Scripts\.
After saving, always open a completely new CMD window. An existing window inherits the old PATH and won’t reflect changes until fresh session is opened.
Checking Python Version on Mac and Linux
The same commands work across operating systems. On Mac, open Terminal (Applications → Utilities → Terminal) and type python3 –version. On Linux, press Ctrl + Alt + T to open a terminal and use the same command. On most modern Mac and Linux systems, python refers to Python 2 if it’s still present, so python3 –version is the reliable command on those platforms.
Why This Check Matters Before Every Project
Package managers like pip resolve dependencies based on your Python version. Frameworks like Django, FastAPI, and NumPy all declare minimum Python version requirements in their documentation. Running an incompatible version produces errors that look unrelated to the real cause — broken imports, syntax failures, and unexpected behaviour that take significant time to trace back to a simple version mismatch. A five-second version check at the start of every new setup prevents hours of debugging later.
FAQs
Q1. What is the latest Python version in 2026?
Python 3.14.5 is the current stable release as of mid-2026. Python 3.12 and 3.13 remain widely used in production environments for library compatibility.
Q2. Why does python –version work differently on Mac than Windows?
On Mac and Linux, python often points to Python 2 if it’s installed. Use python3 –version on those systems to specifically check the Python 3 installation.
Q3. Can I have multiple Python versions installed on one Windows machine?
Yes. The py launcher handles multiple versions. Use py -3.12 –version to check a specific version without changing the system default.
Q4. Why does CMD show a different version than my IDE?
Your IDE may be using a virtual environment or a separately configured interpreter path that differs from the system-wide Python in PATH. Check both independently.
Q5. Do I need to run CMD as administrator to check the Python version?
No. A standard CMD window is sufficient. Administrator mode is only needed for system-level installations or PATH modifications.