Check Python Interpreter Version

Discussion in 'Linux' started by Gabriel9999, Apr 27, 2020.

Tags:
  1. Gabriel9999

    Gabriel9999 MDL Novice

    Mar 11, 2019
    37
    5
    0
    Are there any way to check the Python interpreter version without entering the Python shell or writing Python script?
     
  2. jim_p

    jim_p MDL Senior Member

    Dec 11, 2013
    428
    165
    10
    Something like that?
    Code:
    $ python --version
    Python 2.7.18
    $ python3 --version
    Python 3.8.2