is there anyway to get model name of cpu using python ?
I have code which gives model name in Linux but i want model name in windows.
code:
with open('/proc/cpuinfo') as f:
for line in f:
# Ignore the blank line separating the information between
# details about two processing units
if line.strip():
if line.rstrip('\n').startswith('model name'):
model_name = line.rstrip('\n').split(':')[1]
model=model_name
model=model.strip()
break
print(model)
please help me ?