Search code examples
pythonhardware

Get a unique computer ID in Python on windows and linux


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 several modules (pycpuid, psi, ...) without luck.

Any idea on how to do that?


Solution

  • How about using the MAC address as unique id?

    The discussion here Obtain MAC Address from Devices using Python shows how to obtain the MAC address