How do I force Python to be 32-bit on Snow Leopard and other 32-bit/64-bit questions

  1. You can find out a lot about the Python version you’re running via the platform module (the sys module also has a few simple helpers)

  2. On Mac OS X, you can run a “fat binary” with your chosen architecture with, for example,

    arch -i386 /usr/bin/python

I do not recommend altering /usr/lib/python itself (with the lipo command) — you could easily make your system unusable by tampering with system files. Maybe installing a separate Python from python.org (for application purposes) while leaving the system Python alone is an acceptable strategy to you — it’s definitely safer than altering system files!-)

As for your third question, hmmm, this one’s a stumper to me — and definitely a question for superuser.com (as well as completely unrelated to Python, it also seems completely unrelated to programming;-).

Leave a Comment