Sys.which('python') code example
Example: python sys
import sys
print('Python version you are using')
print(sys.version)
print('Informantion')
print(sys.version_info)
import sys
print('Python version you are using')
print(sys.version)
print('Informantion')
print(sys.version_info)