Getting processor information in Python

user225312 picture user225312 · Jan 30, 2011 · Viewed 60.1k times · Source

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.

Answer

user225312 picture user225312 · Jan 30, 2011

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

>>> import platform
>>> platform.processor()
'Intel64 Family 6 Model 23 Stepping 6, GenuineIntel'