Answers for "get python version in script"

5

python version command

import sys
print(sys.version)
Posted by: Guest on April-15-2020
13

how to find python version

python --version
Posted by: Guest on April-28-2020
0

get python version in code

import platform

print(platform.python_version())
Posted by: Guest on November-17-2020
8

check python version

# To check Python version 
python -V
----or----
python --version
Posted by: Guest on March-01-2021

Code answers related to "get python version in script"

Python Answers by Framework

Browse Popular Code Answers by Language