How to Check Python Version on PC or Mac

Method 1 of 2:

Windows PC

  1. How to Check Python Version on PC or Mac Picture 1
    Open Windows Search. If you don't already see a search box in the taskbar, click the magnifying glass or circle next to
    How to Check Python Version on PC or Mac Picture 2
    , or press Win+S.
  2. How to Check Python Version on PC or Mac Picture 3
    Type python into the search bar. A list of matching results will appear.
  3. How to Check Python Version on PC or Mac Picture 4
    Click Python [command line]. This opens a black terminal window to a Python prompt.
  4. How to Check Python Version on PC or Mac Picture 5
    Find the version in first line. It's the number right after the word 'Python' at the top-left corner of the window (e.g. 2.7.14).
Method 2 of 2:

macOS

  1. How to Check Python Version on PC or Mac Picture 6
    Open a Terminal window on your Mac. To do this, open the Applications folder in Finder, double-click the Utilities folder, then double-click Terminal.
  2. How to Check Python Version on PC or Mac Picture 7
    Type python -V at the prompt (V uppercase).
  3. How to Check Python Version on PC or Mac Picture 8
    Press Return. The version number will appear on the next line after the word 'Python' (e.g. 2.7.3).
5 ★ | 2 Vote

May be interested

  • Write a program to check password in PythonWrite a program to check password in Python
    you can develop a strong password checker in python. here are details on how to write a password checker program in python.
  • Multiple choice quiz about Python - Part 3Multiple choice quiz about Python - Part 3
    today's topic quantrimang wants to challenge you is about file and exception handling in python. let's try the following 15 questions!
  • 5 choose the best Python IDE for you5 choose the best Python IDE for you
    in order to learn well python, it is essential that you find yourself an appropriate ide to develop. quantrimang would like to introduce some of the best environments to help improve your productivity.
  • What is Python? Why choose Python?What is Python?  Why choose Python?
    python is a powerful, high-level, object-oriented programming language, created by guido van rossum. python is easy to learn and emerging as one of the best introductory programming languages ​​for people who are first exposed to programming languages.
  • Module time in PythonModule time in Python
    python has a time module used to handle time-related tasks. tipsmake.com will work with you to find out the details and functions related to the time specified in this module. let's follow it!
  • Python data type: string, number, list, tuple, set and dictionaryPython data type: string, number, list, tuple, set and dictionary
    in this section, you'll learn how to use python as a computer, grasp python's data types and take the first step towards python programming.
  • How to install Python on Windows, macOS, LinuxHow to install Python on Windows, macOS, Linux
    to get started with python, you first need to install python on the computer you are using, be it windows, macos or linux. below is a guide to installing python on your computer, specific to each operating system.
  • How to set up Python to program on WSLHow to set up Python to program on WSL
    get started with cross-platform python programming by setting up python on the windows subsystem for linux. here's how to set up python for wsl programming.
  • How to Install PythonHow to Install Python
    python is an interpreted, object-oriented, high-level programming language that is a great place for beginners to start learning how to program. python comes installed on macs and with linux, but you'll need to install it yourself if...
  • The function hasattr () in PythonThe function hasattr () in Python
    the hasattr () function in python is used to check if the input object has the property you want to find.