Getting CPU temperature using Python?

后端 未结 10 1173
失恋的感觉
失恋的感觉 2020-12-03 05:08

How do I retrieve the temperature of my CPU using Python? (Assuming I\'m on Linux)

10条回答
  •  渐次进展
    2020-12-03 05:30

    Depending on your Linux distro, you may find a file under /proc that contains this information. For example, this page suggests /proc/acpi/thermal_zone/THM/temperature.

提交回复
热议问题