What Version of Python Do I Have Linux?
Contents How Do I Find Python Version in Linux? Check Python Version from Command Line / in Script Check the Python Version on the Command Line: –Version, -V...
Contents
How do I find python version in Linux?
Check Python version from command line / in script
- Check the Python version on the command line: –version , -V , -VV.
- Check the Python version in the script: sys , platform. Various information strings including version number: sys.version. Tuple of version numbers: sys.version_info.
How do I tell which version of python I have?
To check your Python version in your script, run import sys to get the module and use sys.
…
Check Python Version Linux (Exact Steps)
- Open the terminal application (for example, bash).
- Execute command : type in python –version or python -V and press enter.
- The Python version appears in the next line below your command.