问题描述
- python程序用pyinstaller打包成单个exe文件后运行出错
-
如题,我打包一个python程序,import 的包比较多,打包过程也没报错,用pyinstaller
-D 打包为目录时程序可以执行,用-F打包成单个文件,运行就崩溃掉,
warn*文件里这样的信息
missing module named unicodedata.ucd_3_2_0 - imported by unicodedata, stringprep, encodings.idna
missing module named _sre.MAXREPEAT - imported by _sre, sre_constants
missing module named _warnings.warn_explicit - imported by _warnings, warnings
missing module named _warnings.filters - imported by _warnings, warnings
missing module named _warnings.once_registry - imported by _warnings, warnings
missing module named _warnings.default_action - imported by _warnings, warnings......
哪位有经验的同学帮忙看下怎么破,不甚感激。。。
解决方案
window下用PyInstaller把python文件 打包成exe文件
pyinstaller--将python打包成exe
使用pyinstaller打包python为exe文件
解决方案二:
http://bbs.csdn.net/topics/390465972
时间: 2024-12-22 15:07:38