Skip to content

How to Check Python Version in Linux Command Line

Category
Python
Versions & support
About Python →

Python is a high-level, general-purpose programming language created by Guido van Rossum. It was first released in 1991. Generally, Linux based distros have pre-installed Python version. This tutorial will help you to find the current version of Python installed on your Linux system using the command line.

python -V

Output:

Python 2.7.12

The systems have multiple version of Python installed can find like this.

Check Python Version

Rahul

Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

1 Comment

  1. I have a version of Python 2.7.8 and a version of Python 2.7.16. How to identify or differentiate as both are pointing to “python 2.7.5”

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top