In [2]:
import platform
print('Version:', platform.python_version())
print('Version tuple:', platform.python_version_tuple())
print('Compiler:', platform.python_compiler())
print('Buil:', platform.python_build())
In [3]:
import platform
print('Normal:', platform.platform())
print('Aliased:', platform.platform(aliased=True))
print('Terse:', platform.platform(terse=True))
In [4]:
import platform
print('uname:', platform.uname())
print()
print('system :', platform.system())
print('node :', platform.node())
print('release :', platform.release())
print('version :', platform.version())
print('machine :', platform.machine())
print('processor:', platform.processor())
In [5]:
import platform
print('interpreter:', platform.architecture())
print('/bin/ls :', platform.architecture('/bin/ls'))