Question- Getting Windows 64bits information Python 32bits

Andrew Berg bahamutzero8825 at gmail.com
Thu Jul 7 11:46:56 EDT 2011


On 2011.07.07 10:21 AM, António Rocha wrote:
> I'm running Python (32b) in Windows7 (at 64bits) and I would like to
> know how can I check if my machine is a 32b or 64b in Python. Is it
> possible? I saw a few examples (like platform) but they only provide
> information about Python not the machine.
os.environ['processor_architecture']

os.environ is a dictionary of system environment variables. That exact
key probably only exists on Windows, but I'm there is a similar key on
other platforms.



More information about the Python-list mailing list