pip install cpu code example Example 1: check cpu temp linux watch -n 2 sensors Example 2: linux cpu power install sudo apt-get install linux-cpupower