About this question
Curious about which Python version is installed on your system? Learn how to check your Python version using quick commands, whether you're on Windows, macOS, or Linux!
Curious about which Python version is installed on your system? Learn how to check your Python version using quick commands, whether you're on Windows, macOS, or Linux!
Log in to share your answer and help other learners.
Log in to answerBest Answer · By JanBask Python Expert
Answered on Mar 27, 2025
If you're wondering which version of Python is installed on your computer, there are some easy ways to check it, whether you're on Windows, macOS, or Linux. Knowing your Python version is important, especially when you’re installing packages or troubleshooting compatibility issues.
Here are some quick methods:
Using the Command Line (Works on all OS)
Open your terminal or command prompt and type:
python --versionor
python3 --version This will display the installed Python version, like Python 3.10.5.
Using Python Shell (REPL)
You can also enter the Python shell by typing:
pythonOnce inside, check the version with:
import sys
print(sys.version)On Windows
If Python is added to your PATH, open Command Prompt and run:
py --versionOn macOS/Linux
Use:
python3 --versionFree tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.
Most-read guides across JanBask
Common Python interview questions, answered
Guides, tips and career advice on Python from JanBask experts.
Python How to Become a Python Developer: A Step-by-Step Guide for Beginners
Discover how to become a Python Developer via a practical 7-step guide build projects, maintain clean code, practice daily, and…
Python PCEP Certification Guide: Entry-Level Python Programmer Certification
Explore this PCEP certification guide for insights on cost, exam format, passing score, application, training, and study tips.…
Python Top 50+ Python Projects ideas for Beginners to Advanced
Discover innovative Python project ideas, explore advanced Python projects, and find good Python projects for beginners and…
Python How To Comment Out Multiple Lines In Python Like A Pro
Commenting out code is a common practice among programmers. It allows you to temporarily disable parts of your code without…