Python view is 23-bit or 64-bit version __python

Source: Internet
Author: User

Need to get the current installation of Python is 32 or 64, because beginners, the Internet to find some information also does not work, and then consulted the predecessors only know, as follows

$ python3.5

Python 3.5.2 (V3.5.2:4DEF2A2901A5, June 26 2016, 10:49:35)

[GCC 4.2.1 (Apple Inc. build 5577)] on Darwin

Type ' help ', ' copyright ', ' credits ' or ' license ' for the more information.

>>> Import Platform

>>> Platform.architecture ()

(' 32bit ', ')

>>>


In addition, the platform module can also get a lot of other information, where the content reproduced s from the Python development _platform_ get the operating system details tool

'''
In Python, the platform module gives us a lot of ways to get information about the operating system.
Such as:
Import Platform
Platform.platform () #获取操作系统名称及版本号, ' Windows-7-6.1.7601-sp1 '
Platform.version () #获取操作系统版本号, ' 6.1.7601 '
Platform.architecture () #获取操作系统的位数, (' 32bit ', ' WindowsPE ')
Platform.machine () #计算机类型, ' x86 '
Platform.node () #计算机的网络名称, ' hongjie-pc '
Platform.processor () #计算机处理器信息, ' x86 Family Model 6 Stepping 3, AUTHENTICAMD '
Platform.uname () #包含上面所有的信息汇总, Uname_result (system= ' Windows ', node= ' hongjie-pc ',
Release= ' 7 ', version= ' 6.1.7601 ', machine= ' x86 ', processor= ' x86 Family
Model 6 Stepping 3, AUTHENTICAMD ')


You can also get some information about Python in your computer:
Import Platform
Platform.python_build ()
Platform.python_compiler ()
Platform.python_branch ()
Platform.python_implementation ()
Platform.python_revision ()
Platform.python_version ()
Platform.python_version_tuple ()
'''


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.