Getting processor information in Python

后端 未结 10 2008
一向
一向 2020-11-29 04:20

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 check

10条回答
  •  忘掉有多难
    2020-11-29 05:05

    For an easy to use package, you can use cpuinfo.

    Install as pip install py-cpuinfo

    Use from the commandline: python -m cpuinfo

    Code:

    import cpuinfo
    cpuinfo.get_cpu_info()['brand']
    

提交回复
热议问题