I\'d like to get an id unique to a computer with Python on Windows and Linux. It could be the CPU ID, the motherboard serial, ... or anything else.
I looked at sever
For python3.6 and windows must be used decode
>>> import subprocess ... current_machine_id = subprocess.check_output('wmic csproduct get uuid').decode().split('\n')[1].strip() ... print(current_machine_id)