I have a code who is depended on Qt, PyQt, VTK, ITK, libs. using CMAKE to build Environment: Windows I want to distribute EXE who has cxx, py files and related dlls
I have tried to compile and got executable but my python files are remaining necked. I don't want to share python files as a script.
how we can make those python files as a dlls
python is often a hard language to turn to exe but the best way to do so is using the pyinstaller
package. Installed by pip install pyinstaller
and can turn a .py
file to a .exe
by pyinstaller --onefile FILENAME.py
in CMD
. After that your exe file should be stored in a folder called disk
. The other files can just be included in the same file as the exe.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.