成功解决cx_Freeze打包的时候出现importError:can not import name idnadata
成功解决cx_Freeze打包的时候出现importError:can not import name idnadata
解决问题
cx_Freeze打包的时候出现importError:can not import name idnadata
解决方法
exe = Executable(script="WeChat.py", icon="Jasonniu.ico", base="Win32GUI")
buildOptions = dict(excludes = ["tkinter"], includes =["idna.idnadata"], optimize=1)
setup(name = "instagram",version = "1.0", description = "test", executables = [exe], options = dict(build_exe = buildOptions))
解决问题
AttributeError: 'NoneType' object has no attribute 'write'
解决方法
exe = Executable(script="WeChat.py", icon="Jasonniu.ico", base="Win32GUI")
buildOptions = dict(excludes = ["tkinter"], includes =["idna.idnadata"], optimize=1)
setup(name = "instagram",version = "1.0", description = "test", executables = [exe], options = dict(build_exe = buildOptions))
赞 (0)