poppyque
poppyque
采纳率50%
2019-01-12 22:11

pyinstaller打包生成的EXE无法打开fail to execute scripts

5
已采纳

cmd中运行都没有问题,下面是我从warn文件里拷贝出来的,是否是缺失第三方库的问题?

missing module named 'win32com.gen_py' - imported by win32com (conditional, optional), C:\python27\lib\site-packages\pyinstaller-3.5.dev0+5edb4f7de-py2.7.egg\PyInstaller\loader\rthooks\pyi_rth_win32comgenpy.py (top-level)
missing module named org - imported by copy (optional)
missing module named readline - imported by cmd (delayed, conditional, optional), pdb (delayed, optional)
missing module named pwd - imported by posixpath (delayed, conditional), shutil (optional), tarfile (optional), getpass (delayed)
missing module named _sysconfigdata - imported by distutils.sysconfig (delayed)
missing module named fcntl - imported by tempfile (optional), subprocess (conditional)
missing module named grp - imported by shutil (optional), tarfile (optional)
missing module named PyObjCTools - imported by pyttsx.drivers.nsss (top-level)
missing module named AppKit - imported by pyttsx.drivers.nsss (top-level)
missing module named Foundation - imported by pyttsx.drivers.nsss (top-level)
missing module named 'org.python' - imported by pickle (optional), xml.sax (delayed, conditional)
missing module named riscosenviron - imported by os (conditional, optional)
missing module named riscospath - imported by os (conditional)
missing module named riscos - imported by os (conditional, optional)
missing module named ce - imported by os (conditional, optional)
missing module named _emx_link - imported by os (conditional)
missing module named os2 - imported by os (conditional, optional)
missing module named posix - imported by os (conditional, optional)
missing module named resource - imported by posix (top-level)
missing module named elementtree - imported by xlrd.xlsx (delayed, conditional, optional)
missing module named lxml - imported by xlrd.xlsx (delayed, conditional, optional)
missing module named cElementTree - imported by xlrd.xlsx (delayed, conditional, optional)
missing module named _scproxy - imported by urllib (conditional)
missing module named EasyDialogs - imported by getpass (optional)
missing module named termios - imported by getpass (optional)
missing module named SOCKS - imported by ftplib (optional)
missing module named rourl2path - imported by urllib (conditional)
missing module named java - imported by xml.sax._exceptions (conditional)
missing module named _xmlplus - imported by xml (optional)
missing module named defusedxml - imported by xlrd.xlsx (delayed, conditional, optional)
missing module named ElementC14N - imported by xml.etree.ElementTree (optional)
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

3条回答

  • caozhy 回答这么多问题就耍赖把我的积分一笔勾销了 2年前

    缺少pywin32,这个东西是区分32bit和64bit系统的。

    点赞 1 评论 复制链接分享
  • localtan localtan 1年前

    你没有将要编译的文件连接到pyinstaller上(你只编译打包了一个主文件)
    使用 pyinstaller -p <文件或文件夹>
    -p可以多次使用

    点赞 评论 复制链接分享
  • qq_44031428 放开那女的 让我来 2年前

    可以这么理解只是你系统内没有支持你要打开32位文件的数据库

    点赞 1 评论 复制链接分享