How to Check Python Version on PC or Mac
Method 1 of 2:
Windows PC
- Open Windows Search. If you don't already see a search box in the taskbar, click the magnifying glass or circle next to
- Type python into the search bar. A list of matching results will appear.
- Click Python [command line]. This opens a black terminal window to a Python prompt.
- 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
- 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.
- Type python -V at the prompt (V uppercase).
- Press ⏎ Return. The version number will appear on the next line after the word 'Python' (e.g. 2.7.3).
5 ★ | 2 Vote
You should read it
- How to Open a Terminal Window in Ubuntu
- How to customize Windows Terminal application
- How to use Guake Terminal in Linux
- Python online editor
- More than 100 Python exercises have solutions (sample code)
- 6 interesting terminal commands on Mac
- How to Open a Python File
- How to Change How Often a Mac Screen Saver Changes
May be interested
- Write a program to check password in Pythonyou 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 3today'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 youin 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?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 Pythonpython 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 dictionaryin 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, Linuxto 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 WSLget 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 Pythonpython 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 hasattr () function in python is used to check if the input object has the property you want to find.