How do I determine if my python shell is executing in 32bit or 64bit?

前端 未结 18 1150
北恋
北恋 2020-11-22 04:25

I need a way to tell what mode the shell is in from within the shell.

While I\'m primarily an OS X user, I\'d be interested in knowing about other platforms as well.<

18条回答
  •  灰色年华
    2020-11-22 04:33

    When starting the Python interpreter in the terminal/command line you may also see a line like:

    Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32

    Where [MSC v.1500 64 bit (AMD64)] means 64-bit Python. Works for my particular setup.

提交回复
热议问题