I make a game by using python 2.7.11, I use cxFreeze to creat the exe file to make sure others can play it on other computers. But something disturbs me. I cann't let the pygame modules link to the testspeed.exe. My python edition is 32bit, and the pygame module is 32bit too. The IDE is pycharm. All things about python is in the C:\ , only testspeed.py in the E:\ Please help me!
This is the setup.py code:
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os"], "excludes": ["Tkinter","Pygame"]}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup( name = "testspeed",
version = "0.1",
description = "test your speed!--lcy",
options = {"build_exe": build_exe_options},
executables = [Executable("testspeed.py", base=base)])
I type code like this in commandline:
python setup.py bdist_msi
But something happend:
This is the picture(I don't have enough reputation to post more than 2 links):
PS: I use google ,find someone use the include command , but I can't understand the method to let the pygame become a exe file.