Check Python Interpreter Version

Gabriel9999

Member
Joined
Mar 12, 2019
Messages
38
Reaction score
4
Credits
130
Are there any way to check the Python interpreter version without entering the Python shell or writing Python script?
 


You should be able to see it with your package manager.
 
python -V (uppercase)
In some case python3 -V or python3.8 -V
 
python -V (uppercase)
That does it! I knew there must be a way :)
Just typing "python" on the command line will reveal the version but that also invokes the 'python shell' which the OP did not want.
Thanks for the tip @dos2unix
 
Python with a lowercase -v doesn't really work that well. Also, it goes into a python shell session which the OP did not want.

Python with an uppercase -V works perfectly without entering the python session.

or python3 -V
or python2 -V

At least that is how it works on Linux Mint 19.3 Tricia
 

Members online


Latest posts

Top