Frage

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.

War es hilfreich?

Lösung

Technically 32x/86x can be used on 64x, but when I used to fiddle around with running 64x on 32x/86x, it crashed the computer, so nothing really just use the 32x/86x compiler. So, 64x programs are one way but 32x/86x are not:

  • 64x program -> 64x computer
  • 32x/86x program -> 32x/86x computer
  • 32x/86x program -> 64x computer

Long story short: just use Py2Exe 32x/86x.

Andere Tipps

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top