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 3666970
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:56:39+00:00 2026-05-19T01:56:39+00:00

I am trying to run python in 32 bit mode on Mac OS X

  • 0

I am trying to run python in 32 bit mode on Mac OS X Snow Leopard, and I have been having some success, but with the following weirdness.

If I run it with /usr/bin/python, it seems to not want to run in 32 bit mode, but if I run it using /usr/bin/python2.6, it runs in 32 bit mode fine. As far as I could tell before this point /usr/bin/python was the same as /usr/bin/python2.6. Does anyone know why they would behave differently here?

zrbecker:src$ /usr/bin/python --version
Python 2.6.1
zrbecker:src$ /usr/bin/python2.6 --version
Python 2.6.1
zrbecker:src$ arch -i386 /usr/bin/python2.6 -c 'import wx'
zrbecker:src$ arch -i386 /usr/bin/python -c 'import wx'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/__init__.py", line 45, in <module>
  File "/var/tmp/wxWidgets/wxWidgets-13~231/2.6/DSTROOT/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/_core.py", line 4, in <module>
ImportError: /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/_core_.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)
  • 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-19T01:56:40+00:00Added an answer on May 19, 2026 at 1:56 am

    In OS X 10.6, Apple provided a way to permanently select whether the Python 2.6 supplied in OS X runs in 64-bit mode or 32-bit mode (VERSIONER_PYTHON_PREFER_32_BIT) and other options. See man 1 python for details. The /usr/bin/python program is a front-end to that and examines the selected options, set either by default plists or by environment variables, and spawn the desired interpreter version in the selected mode, regardless of the mode that the wrapper program is launched in (via arch for instance). /usr/bin/python2.6 is a slightly modified version of the standard OS X pythonw program and it launches the interpreter in the mode it itself is launched in. The standard python.org distribution for 2.6 does not have similar code. In newer versions of Python, 2.7 and 3.2, the pythonw executable also honors the mode it is launched in, so arch -i386 will work.

    By the way, Apple makes available here the source of various open source products, including Python, incorporated into OS X releases along with the customizations patches used to build it.

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

Sidebar

Related Questions

I have been receiving errors when trying to save and run this Python 3.1
I'm trying to run some python code under Apache 2.2 / mod_python 3.2.8. Eventually
I'm using python 2.7, and trying to run some CPU heavy tasks in their
Hey.. I have run into a bit of a problem with my python code..
I'm trying to run the following little Python script: #!/usr/local/bin/python2.5 import sys, subprocess child
I'm trying to run Python scripts using Xcode's User Scripts menu. The issue I'm
I am trying to run the VS 2008 SP1 installer , but it says
I'm trying to run some queries to get rid of XSS in our database
I'm trying to run SQuirreL SQL. I've downloaded it and installed it, but when
I've been trying to get MOD_WSGI working on Apache via XAMPP on my Mac

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.