3

Title pretty much says it all. Python 2.7.8, OSX 10.8.5 Already tried (separately) all the methods on:

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

arch -i386 /usr/local/bin/python

and

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes

and

export VERSIONER_PYTHON_PREFER_32_BIT=yes

When I jump into the interpreter and run import platform; platform.architecture() I still get

('64bit', '') for each one.

sys.maxsize > 2**32 returns True

Community
  • 1
  • 1
thumbtackthief
  • 6,093
  • 10
  • 41
  • 87

1 Answers1

1

platform.architecture() is unreliable on OSX, to be sure you're still runing 64 bit and not 32 you should run sys.maxsize > 2**32

https://docs.python.org/2/library/platform.html#platform.architecture

Boris Verkhovskiy
  • 14,854
  • 11
  • 100
  • 103