How To Find Python Version?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/find-python-version/
PINTEREST
PINTEREST
INSTAGRAM

I want to run some python scripts but want to learn version of the python installed on the system. How can I do that? This works almost all operating systems from Windows to Linux, from Mac OS to Bsd.

Get Version Of Default Python Interpreter

We can get default python interpreter version like below. As we know that if the version of python is not specified the default python interpreter will be called.

We see from there the default python interpreter is version 2.

Get Python2 Exact Version

We can get Python2 exact version like below

Get Python3 Exact Version

We can get Python2 exact version like below

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/find-python-version/
PINTEREST
PINTEREST
INSTAGRAM

LEARN MORE  How To Trace System calls and Signals With Strace Command With Examples

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)