Traceback (most recent call last):
File ;D:Program Files (x86)anacondaenvsenv_dalib
unpy.py;, line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File ;D:Program Files (x86)anacondaenvsenv_dalib
unpy.py;, line 87, in _run_code
exec(code, run_globals)
File ;D:Program Files (x86)anacondaenvsenv_daScripTSPyinstaller.exe__main__.py;, line 7, in <module>
File ;D:Program Files (x86)anacondaenvsenv_dalibsite-packagesPyInstaller__main__.py;, line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File ;D:Program Files (x86)anacondaenvsenv_dalibsite-packagesPyInstaller__main__.py;, line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File ;D:Program Files (x86)anacondaenvsenv_dalibsite-packagesPyInstalleruildinguild_main.py;, line 838, in main
build(specfile, kw.get(;distpath;), kw.get(;workpath;), kw.get(;clean_build;))
File ;D:Program Files (x86)anacondaenvsenv_dalibsite-packagesPyInstalleruildinguild_main.py;, line 784, in build
exec(text, spec_namespace)
File ;<string>;, line 18, in <module>
File ;D:Program Files (x86)anacondaenvsenv_dalibsite-packagesPyInstalleruildingapi.py;, line 98, in __init__
self.__postinit__()
File ;D:Program Files (x86)anacondaenvsenv_dalibsite-packagesPyInstalleruildingdatastruct.py;, line 158, in __postinit__
self.assemble()
File ;D:Program Files (x86)anacondaenvsenv_dalibsite-packagesPyInstalleruildingapi.py;, line 128, in assemble
self.code_dict = {
File ;D:Program Files (x86)anacondaenvsenv_dalibsite-packagesPyInstalleruildingapi.py;, line 129, in <dictcomp>
key: strip_paths_in_code(code)
File ;D:Program Files (x86)anacondaenvsenv_dalibsite-packagesPyInstalleruildingutils.py;, line 654, in strip_paths_in_code
consts = tuple(
File ;D:Program Files (x86)anacondaenvsenv_dalibsite-packagesPyInstalleruildingutils.py;, line 655, in <genexpr>
strip_paths_in_code(const_co, new_filename)
File ;D:Program Files (x86)anacondaenvsenv_dalibsite-packagesPyInstalleruildingutils.py;, line 662, in strip_paths_in_code
return code_func(co.co_argcount, co.co_kwonlyargcount, co.co_nlocals, co.co_stacksize,
TypeError: an integer is required (got type bytes)
解决方法;
更新一下pyinstaller;pip install --upgrade pyinstaller
更新后再次打包;pyinstaller -F main.py
出现如图错误;根据提示继续执行;pip install tinyaes
再次进行打包;pyinstaller -F main.py
成功打包exe文件。
Nero9怎样刻录ISO镜像文件?- Nero9刻录ISO镜像文件教程
pandownload如何下载BT种子?-pandownload下载BT种子教程攻略