How to check Python version on PC or Mac

Author: Lewis Jackson
Date Of Creation: 11 May 2021
Update Date: 1 July 2024
Anonim
CHECK PYTHON VERSION - How To Check The Python Version On Windows, Mac, or Linux
Video: CHECK PYTHON VERSION - How To Check The Python Version On Windows, Mac, or Linux

Content

This wikiHow teaches you how to determine the Python version installed on a Windows or macOS computer.

Steps

Method 1 of 2: On a Windows PC

  1. , or press ⊞ Win+S.

  2. Import python into the search bar. A list of matches will appear.
  3. Click Python . A black terminal window will open with a Python command prompt.

  4. Find the version in the first line. This is the number immediately after the word "Python" in the upper-left corner of the window (example: 2.7.14). advertisement

Method 2 of 2: On macOS

  1. Open a Terminal window on the Mac. To proceed, open the folder Applications in the Finder, double-click the folder Utilities then double click Terminal.

  2. Import python -V at the command prompt (capital V).
  3. Press ⏎ Return. The version number will appear in the next line after the word "Python" (example: 2.7.3). advertisement