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?
解决方案Is there any way to compile it without the need of python installation at runtime?
Perhaps technically yes (with some your improvements to Cython) but then ....
the resulting executable might be illegal to redistribute
(if you use static linking and did not get legally proper software licenses)
Read carefully again all open source licenses involved with Python and