Y
Y
Yes It's matrik2022-03-17 18:49:59
Building projects
Yes It's matrik, 2022-03-17 18:49:59

How to build a 32 bit exe file?

Recommend some methods/libraries to create a 32-bit exe file.
I wanted to convert tkinter code to exe file using pyinstaller. But, as far as I understand, pyinstaller makes the bitness of the file based on the bitness of python itself. That is, to create a 32-bit exe, you need 32-bit python, and I see no point in setting up a separate environment for one small code. If any libraries for creating 32-bit exes?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
rPman, 2022-03-17
@itsmatrik

there is a real compiler for python applications into an exe file (more precisely, it first generates c ++ files and they can already be compiled into a binary of the desired architecture) - nuitka
, depending on the use of libraries, it may turn out and even increase (significantly) the speed of the application

V
Vindicar, 2022-03-17
@Vindicar

The popular python packers in exe simply put the entire python interpreter there (well, it can only select the modules used) along with the script code. This is NOT a real compilation.
So draw your own conclusion whether it is possible to pack the script into a 32-bit executable without having a 32-bit python on the machine.
If there is a full-fledged Python translator in C ++ or a similar honest compiled language, it is not known to me.

Z
Zolg, 2022-03-17
@Zolg

given that the main part of the python 'executive' is a python interpreter, then such 'libraries' are called 32 bit python distribution)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question