Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7599679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:43:19+00:00 2026-05-30T22:43:19+00:00

This is essentially the same as asking how to detect that I am running

  • 0

This is essentially the same as asking how to detect that I am running under a 64-bit version of Windows.

os.name gives ‘nt’ under both win7 64 and winXP 32 (my two available test computers).
sys.platform gives ‘win32’ in both of those cases.

It looks like the only thing I’ve found so far that works is to check the registry key HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0\Identifier and if ‘x86’ doesn’t appear in it, assume that means 64-bit windows. Is that reliable?

(the python process needs to run under python 2.7 32-bit)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:43:21+00:00Added an answer on May 30, 2026 at 10:43 pm

    Consider checking the PROCESSOR_ARCHITECTURE key in os.environ, and seeing if it’s set to x86 or not.

    Alternatively, you can use the platorm.architecture() call, but point it at a different executable from the Python one (since you’re required to run under 32bit Python).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This questions involves 2 different implementations of essentially the same code. First, using delegate
Surely there is some kind of abstraction that allows for this? This is essentially
So I have a DOM document that looks essentially like this <categories> <category id=1/>
I'm writing a cache-eject method that essentially looks like this: while ( myHashSet.Count >
Sorry in advance, I'm struggling a bit with how to explain this... :) Essentially,
My question is essentially the same as this one here . I'm using AnkhSVN
I have looked at this question which is essentially the same but the OP
I have two very similar classes that do essentially the same thing. The only
Consider the following pair of snippets, both do the same essentially. <html> <body> <?php
I'm writing a class that does essentially the same type of calculation for each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.