HowTo: Find Python Version

How do I find out python programming language version under a UNIX / *BSD / Linux / Apple OS X operating systems?

You need to simply type the following commands to find out python version (open the terminal application or shell prompt):

## type at your shell ##
python -V

## type at your shell ##
python -V


## type at your shell ##
python --version

## type at your shell ##
python –version

Sample outputs:

Python 2.7.14

So I am using Python version 2.17.14. The -V or –version option shows the Python version number of the executable and exit. For Python 3, try the follwoing command:
$ python3 -V
## or ##
$ python3 --version

Sample outputs:

Python 3.6.3

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Leave a Reply

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

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts