Can I control the architecture (32bit vs 64bit) when building a pyinstaller executable?

前端 未结 2 1739
悲哀的现实
悲哀的现实 2020-12-14 06:21

Short Question
Is there any way to control / guarantee the architecture (32bit vs 64bit) when building a pyinstaller executable?

Backg

2条回答
  •  感情败类
    2020-12-14 07:02

    Pyinstaller produces a binary depending from the python you used to build it. So if you use python 2.7 64 bit it is not possible, as far as I know, to produce a 32 bit executable. This is because Pyinstaller archives all modules and their dependencies (dlls, pyds etc..) which are 64 bit due to the python install.

    As already said it is better, because of cross compatibility issues, to build 32-bit binaries. Probably you can specify more your question.

提交回复
热议问题