Home > Python Language > How to find if python running as 32 or 64 bit?

How to find if python running as 32 or 64 bit?

I don’t know if there is an easy or “standard” way of doing this. Did not bother to google and i do so using the sys module in the interpreter…

import sys
sys.maxint

64 bit ==> 9223372036854775807
32 bit ==> 2147483647

Advertisement
Categories: Python Language
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.