How to create .EXE file in python using cx_freeze

本小妞迷上赌 提交于 2019-12-05 12:46:34

So this is what you need to do. For starters, change script=r"C:\Python32\testapplication.py" to script=r"testapplication.py"

Then, put ALL the files to need to convert into C/python32 including the setup file. Then what you wan to do is get your command line up, and type the following commands: (assuming that you're cx_freeze file is named setup.py):

cd
cd python32
python setup.py build

And then you should have a build folder in that directory containing the exe file.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!