Open JintaoLee-Roger opened 2 years ago
My OS information: Ubuntu20.04, python=3.8.5, pip=20.2.4
Hope to get a reply. Thanks!
What does
import psutil
print(psutil.cpu_percent())
print(psutil.cpu_percent(percpu=True))
give on your machine?
I got this:
>>> import psutil
>>> print(psutil.cpu_percent())
3.0
>>> print(psutil.cpu_percent(percpu=True))
[0.6, 0.1, 8.9, 3.1, 8.8, 2.5, 6.9, 5.8, 4.8, 0.9, 0.7, 0.9, 0.3, 2.0, 3.1, 0.2, 4.1, 3.2, 2.6, 2.2, 1.9, 2.2, 2.4, 2.3, 8.3, 6.5, 12.3, 2.5, 8.9, 0.4, 0.4, 0.1, 0.9, 0.5, 0.4, 6.7, 0.4, 0.0, 0.0, 0.0]
Looks alright. Not sure where it could be going wrong then.
After installing by using the command "pip install tiptop", I ran the command "tiptop" and got the desired result. However, the result is just kept 1s, then I got the following errors: