5

I have MAC OS X 10.8 and i have updated my python to version 2.7.3 using Python's official binary from their website.

I am trying to run a python script which needs to be executed using 32 bit python.

How can i force to run 32-bit python instead of 64-bit?

Command file /usr/bin/python gives me following output.

Alis-Mac:~ ali$ file /usr/bin/python
/usr/bin/python: Mach-O universal binary with 2 architectures
/usr/bin/python (for architecture i386):    Mach-O executable i386
/usr/bin/python (for architecture x86_64):  Mach-O 64-bit executable x86_64

I have also tried the following.

export VERSIONER_PYTHON_PREFER_32_BIT=yes

But this has not even helped because now, i have custom python i guess.

My script has wxpython code in it and i am building app for OSX using platypus so, i have to force my script to run with 32-bit python. Please help.

1 Answers1

0

for now install virtualbox and develop your app in a 32Bit Ubuntu

you can also install pycharm which can allow you to debug through vagrant

Dr Manhattan
  • 13,537
  • 6
  • 45
  • 41