在Windows和Linux上的Python中获取唯一的计算机ID [英] Get a unique computer ID in Python on windows and linux

查看:461
本文介绍了在Windows和Linux上的Python中获取唯一的计算机ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获得Windows和Linux上使用Python的计算机唯一的ID.可能是CPU ID,主板序列号或其他任何内容.

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.

我看了几个没有运气的模块(pycpuid,psi,...).

I looked at several modules (pycpuid, psi, ...) without luck.

关于如何做到这一点的任何想法?

Any idea on how to do that?

推荐答案

如何将MAC地址用作唯一ID?

How about using the MAC address as unique id?

此处的讨论使用Python从设备获取MAC地址显示如何获取MAC地址

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

这篇关于在Windows和Linux上的Python中获取唯一的计算机ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆