Python interpreter configuration checking

This is accomplished by using the sys library.

import sys
print(sys.executable)
This prints the location of the python interpreter in use.

import sys
print(sys.version)
This prints the version of the python interpreter in use.

Comments