yanxianrui_freshmen
yanxianrui_freshmen
2015-11-11 02:58

python程序用pyinstaller打包成单个exe文件后运行出错

  • pyinstaller
  • python
  • 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......
哪位有经验的同学帮忙看下怎么破,不甚感激。。。

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答