Home Interests Python

How to Check Your Python Version

Not sure what version of Python you’re running? Time to find out!
howchoo   (467)
August 24, 2023
3 minutes

Share

Interests
Posted in these interests:
code • 11 guides
python • 18 guides

It’s good to know what version of Python you’re running. Sometimes you may need a specific version to support an application. To check which version you currently have, we’ll be using command line.

tl;dr

python --version

or

python3 --version


1 – Check Python version on MacOS

MacOS users can verify their Python version through the Terminal application. To launch Terminal, open Finder, go to Applications, choose Utilities, and select Terminal.

Run the following command to retrieve your current version of Python.

python --version

If you’ve installed Python 3 alongside the system Python, the command is usually python3 and you can check the exact version using:

python3 --version

2 – Check Python version on Windows 10

Windows 10 users will need to use Windows PowerShell to check the Python version. To launch Windows PowerShell, go to the Start Menu and type powershell. Select it from the list of applications.

Type the following command and press Enter to find your current Python version.

python --version

3 – Check Python version on Linux

If you’re using a Linux-based OS, this includes Raspberry Pi users, you can use the Terminal application to check your Python version. To open Terminal, press Ctrl + Alt + T.

Type this command into the Terminal window and press Enter. This will return info containing your current Python version.

python --version
NEXT UP

Secure Your Sensitive Data with Kubernetes Secrets

Learn how to create and use Kubernetes secrets.
howchoo   (467)
November 26, 2023

Kubernetes secrets are objects that store and manage sensitive data inside your Kubernetes cluster. One mistake developers often make is storing sensitive information like database passwords, API credentials, etc in a settings file in their codebase. This is very bad practice (hopefully for obvious reasons). Most developers know this, but still choose the option because it’s easy.

Continue Reading

howchoo

 467 guides

Introducing Howchoo, an enigmatic author whose unique pen name reflects their boundless curiosity and limitless creativity. Mysterious and multifaceted, Howchoo has emerged as a captivating storyteller, leaving readers mesmerized by the uncharted realms they craft with their words. With an insatiable appetite for knowledge and a love for exploration, Howchoo's writing transcends conventional genres, blurring the lines between fantasy, science fiction, and the surreal. Their narratives are a kaleidoscope of ideas, weaving together intricate plots, unforgettable characters, and thought-provoking themes that challenge the boundaries of imagination.

Discover interesting things!

Explore Howchoo's most popular interests.

Explore