A step-by-step guide on checking your Python version

This wikiHow teaches you how to find which version of Python is installed on your Windows or macOS computer.

Method 1
Method 1 of 2:

Windows PC

  1. 1
  2. 2
    Type python into the search bar. A list of matching results will appear.
    Advertisement
  3. 3
    Click Python [command line]. This opens a black terminal window to a Python prompt.
  4. 4
    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).
  5. Advertisement
Method 2
Method 2 of 2:

macOS

  1. 1
    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. 2
    Type python -V at the prompt (V uppercase).
  3. 3
    Press Return. The version number will appear on the next line after the word “Python” (e.g. 2.7.3).
  4. Advertisement

Community Q&A

  • Question
    I downloaded Python 3.7 but when I check it says that the version is 2.7. What should I do ? (I tried reinstalling it.)
    faith daniel
    faith daniel
    Community Answer
    To prevent further hassle, just download the 3.x version or the latest version from the Python website (python.org).
Advertisement

About This Article

Nicole Levine, MFA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 355,642 times.
How helpful is this?
Co-authors: 4
Updated: June 2, 2022
Views: 355,642
Categories: Python
Article SummaryX

To check which version of Python is installed on your Windows PC, start by opening the Windows Search and typing “Python” into the search bar. When the list of matching results comes up, click “Python” to open a black terminal window to a Python prompt. In the top-left corner of the window, you’ll see a number right after the word “Python,” which is the version that you’re currently running. To learn how to find the version of Python on your Mac, keep reading!

Did this summary help you?
Advertisement