base = None
if sys.platform == 'win32' :
base = 'Win32GUI'
packages = [
'os'
]
options = {
'build_exe' : { 'packages' : packages, 'include_files' : [ 'setup.properties' ], 'icon' : 'bus32.ico',
"includes" : "atexit" },
}
executables = [Executable ( 'install.py', base =base, targetName = 'installpay.exe' ) ]
setup (
name = "PayInstall",
version = "1.0.0",
url = 'http://pay.dreams.edu.cn/',
author = 'liuguanghui',
author_email = 'sunsray@163.com',
description = "Install for Pay PlatForm",
options =options,
executables =executables, requires =[ 'PyQt5' ]
includes': ['atexit']这个必须有
mport sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == 'win32':
base = 'Win32GUI'
setup(name = 'spamandeggs',
version = '0.0.1',
executables = [Executable('spamandeggs.pyw', base=base)],
options = {'build_exe': {'includes': ['atexit']}})
|
0 |
I got the same error today, and finally found a solution for me after a whole day of searching. I copied msvcp100.dll, and everything works. wft |
324




被折叠的 条评论
为什么被折叠?



