How to Check Python Version on Windows or Mac

Table of contents:

How to Check Python Version on Windows or Mac
How to Check Python Version on Windows or Mac
Anonim

This article shows you how to find the version of Python installed on a Windows or Mac computer.

Steps

Method 1 of 2: Windows

Check Python
Check Python

Step 1. Use the Windows Search feature

If the search field is not already visible on the taskbar, click the magnifying glass icon next to the "Start" button

Windowsstart
Windowsstart

. Alternatively, press the key combination ⊞ Win + S.

Check Python
Check Python

Step 2. Type the keyword python into the Windows search bar

The search results list will then be displayed.

Check Python
Check Python

Step 3. Select the Python icon [version_number] (32-bit or 64-bit)

The Windows "Command Prompt" window for the Python console will appear.

Check Python
Check Python

Step 4. Find the version number in the first line of text visible in the window that appears

This is the series of numbers visible after the word "Python" in the upper left corner of the window (for example "3.6.5" or "2.7.14").

Method 2 of 2: macOS

Check Python
Check Python

Step 1. Open a Mac "Terminal" window

Access the "Applications" folder using a "Finder" window, then select the icon first Utility and then the voice Terminal with a double click of the mouse.

Check Python
Check Python

Step 2. Type the python -V command in the "Terminal" window that appears

Check Python
Check Python

Step 3. Press the Enter key

The version number of the programming language installed on the Mac will be displayed after the word "Python" (for example "2.7.3").

Recommended: