Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting processor information in Python

Using Python is there any way to find out the processor information... (I need the name)

I need the name of the processor that the interpreter is running on. I checked the sys module but it has no such function.

I can use an external library also if required.

like image 665
user225312 Avatar asked Jan 30 '11 10:01

user225312


1 Answers

The platform.processor() function returns the processor name as a string.

>>> import platform >>> platform.processor() 'Intel64 Family 6 Model 23 Stepping 6, GenuineIntel' 
like image 104
user225312 Avatar answered Sep 28 '22 18:09

user225312