I'm not sure if this is possible but I want to force my mac to run in 32-bit mode permanently. Currently I've been using this piece of code:
arch -i386 /usr/bin/python
to change it but once I exit python in the terminal it switches back to 64. The reason I want to do this is so I can install pygame. I've already installed it but only in 64-bit mode. I'm not sure if I also need to install it in 32-bit mode for it to work properly. At the moment it says the module does not exist.
Asked
Active
Viewed 3,954 times
0

user1064913
- 335
- 2
- 8
- 19
-
You want to make the entire OS run in 32bit mode? – Nov 27 '11 at 03:15
-
@user1064913: I think you might do best on http://apple.stackexchange.com, what do you think? – Chris Morgan Nov 27 '11 at 03:31
-
We should also note that this is following on from [Installing Pygame for Mac OS X 10.6.8](http://stackoverflow.com/questions/8275808/installing-pygame-for-mac-os-x-10-6-8) – Chris Morgan Nov 27 '11 at 03:36
-
I'm not even sure if this will fix my problem. Maybe if I could just always run python in 32-bit mode? – user1064913 Nov 27 '11 at 03:38
-
Have you thought of using a virtual machine? – Cᴏʀʏ Nov 27 '11 at 03:39
-
1@user1064913: have you tried just doing what they say at http://pygame.org/install.html? Things like http://geoffford.wordpress.com/2009/01/20/pygame-on-os-x-leopard/#bullets may help, too. – Chris Morgan Nov 27 '11 at 03:41
-
Alright, so pygame now shows up in the modules list but I can only use it if I'm running in 32-bit mode which means I can only use python version 2.6. – user1064913 Nov 27 '11 at 04:27
-
Finally got it to work even though I can only run it in 2.6. Thanks guys. – user1064913 Nov 27 '11 at 04:37
2 Answers
1
For the built in python, you can set the VERSIONER_PYTHON_PREFER_32_BIT
environment variable to 1
. For non-built-in Python, you can just install 32-bit instead of 64-bit.
See this question: How do I force Python to be 32-bit on Snow Leopard and other 32-bit/64-bit questions

Community
- 1
- 1

rossipedia
- 56,800
- 10
- 90
- 93
0
With the default python install you will get both the 32 and 64 bit versions. The 32 bit version can be called from the terminal with python2.7-32
or python-32
.