这是一部分的warn文件
missing module named fcntl - imported by tempfile, subprocess, tornado.platform.posix, zmq.eventloop.minitornado.platform.posix, backports.shutil_get_terminal_size.get_terminal_size, prompt_toolkit.terminal.vt100_output, prompt_toolkit.eventloop.posix, pandas.util.terminal, sphinx.util.console, gevent.os, gevent.fileobject, gevent.subprocess
missing module named org - imported by copy
missing module named _sysconfigdata - imported by distutils.sysconfig, sysconfig
missing module named grp - imported by distutils.archive_util, shutil, tarfile, pathlib2
missing module named pwd - imported by posixpath, getpass, distutils.util, distutils.archive_util, shutil, tarfile, webbrowser, pathlib2, netrc, docutils.frontend
missing module named 'PyQt5.sip' - imported by C:UserstAnaconda2libsite-packagesPyInstallerloaderrthookspyi_rth_qt5plugins.py
missing module named readline - imported by cmd, pdb, code, pstats, dill.source
missing module named unittest._WritelnDecorator - imported by unittest, nose.plugins.multiprocess
missing module named unittest.mock - imported by unittest, matplotlib, sqlalchemy.testing.mock
missing module named 'six.moves.urllib_parse' - imported by 'six.moves.urllib_parse'
runtime module named six.moves - imported by dateutil.tz.win, dateutil.rrule, cycler, prompt_toolkit.utils, prompt_toolkit.document, prompt_toolkit.buffer, prompt_toolkit.layout.containers, prompt_toolkit.layout.controls, prompt_toolkit.layout.lexers, prompt_toolkit.layout.processors, prompt_toolkit.layout.margins, prompt_toolkit.styles.from_dict, prompt_toolkit.renderer, prompt_toolkit.key_binding.bindings.scroll, prompt_toolkit.key_binding.bindings.emacs, prompt_toolkit.key_binding.bindings.vi, prompt_toolkit.layout.menus, prompt_toolkit.terminal.vt100_output, prompt_toolkit.terminal.win32_input, prompt_toolkit.key_binding.input_processor, prompt_toolkit.terminal.vt100_input, patsy.util, patsy.parse_formula, patsy.tokens, sphinx.application, sphinx.locale, sphinx.util, 'six.moves.urllib', sphinx.util.pycompat, sphinx.dir
很明显是缺少库,你用的是什么选项,是打包成一个exe,还是有依赖文件。
最重要的一点是Python设计出来不是为了让你生成可执行文件用的,很明显的缺点是你的代码里引用库使用不当的话生成的可执行文件和依赖文件会大的惊人。
可以的话建议使用flask或者Django把你的程序发布为一个Web应用。