Py2exe - Compile exe for 32 bit and 64 bit

Viewed 7042

I've been researching a bit, but need a bit of advice specifically for Py2exe apps. I'm on a 64 bit machine, but from what I understand I can compile in 32 bit format, and run on both 32 and 64 bit.

Now my question. To make an exe, I'm using py2exe. So from what I understand, you don't need a 32 bit environment, just a 32 bit compiler which means 32 bit Py2exe? So if I delete Py2exe and reinstall the 32 bit version of py2exe, it will run on both? Are there any other precautions I need to take?

Thanks so much.

2 Answers

You can install Python 32 bit and 64 bit on your 64 bit system.you need to install needed packages and py2exe for both 32 and 64 bit version of python separately. after you installed 32 bit, you must change Windows path of python to 32 bit to use it..after success 32 bit compile you can change windows path to 64 bit again.

A Note about 32 and 64 bit: If your app require more that 2GB RAM( like scientific calculating,etc) use 64 bit version .else use 32 bit version. Also you maybe do not need to use 64bit since windows will emulate 32bit programs using wow64. But using the (64bit) in 64 bit OS will give you more performance. also note that some options of py2exe are not support on 64bit like bundle_files

Related