Home:ALL Converter>Cython Compiled EXE needs Python Installation to RUN

Cython Compiled EXE needs Python Installation to RUN

Ask Time:2020-05-21T11:02:33         Author:K L Cheong

Json Formatter

I have compiled my python code (in Windows) with the following cython and gcc commands:-

cython --embed -o hello.c hello.py
gcc -municode -mthreads -Wall -O -IC:\Python37\include -LC:\Python37\libs hello.c -lpython37 -Wl,--subsystem,windows -o hello.exe

(I am using modules such as request, pysimpleguiqt and fdb in hello.py)

The resulting exe requires python installation to execute. Is there any way to compile it without the need of python installation at runtime?

Author:K L Cheong,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/61926457/cython-compiled-exe-needs-python-installation-to-run
yy