python - How to use cxFreeze make an exe file including pygame module -


i make game using python 2.7.11, use cxfreeze creat exe file make sure others can play on other computers. disturbs me. cann't let pygame modules link testspeed.exe. python edition 32bit, , pygame module 32bit too. ide pycharm. things python in c:\ , testspeed.py in e:\ please me!

this setup.py code:

import sys cx_freeze import setup, executable  # dependencies automatically detected, might need fine tuning. build_exe_options = {"packages": ["os"], "excludes":  ["tkinter","pygame"]}  # gui applications require different base on windows (the default # console application). base = none if sys.platform == "win32":     base = "win32gui"  setup(  name = "testspeed",         version = "0.1",         description = "test speed!--lcy",         options = {"build_exe": build_exe_options},         executables = [executable("testspeed.py", base=base)]) 

i type code in commandline:

python setup.py bdist_msi  

but happend:

this picture(i don't have enough reputation post more 2 links):

enter image description here

ps: use google ,find use include command , can't understand method let pygame become exe file.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -