构建后的Python cx_Freeze错误

时间:2018-07-21 22:15:28

标签: python pyqt5 cx-freeze pillow

我想将file.pyw转换为exe,我使用PILLOW,PYQT5,Xml.Dom,OS。 我在cmd python setup.py中编写了此工作,但我看到了这一行

Missing modules:? 
? PyQt4.QtCore imported from PIL.ImageQt
? PyQt4.QtGui imported from PIL.ImageQt
? PySide.QtCore imported from PIL.ImageQt
? PySide.QtGui imported from PIL.ImageQt
? __builtin__ imported from PIL.Image
? _dummy_threading imported from dummy_threading
? _frozen_importlib imported from importlib, importlib.abc
? _frozen_importlib_external imported from importlib, importlib._bootstrap, 
importlib.abc
? _hashlib imported from hashlib
? _posixsubprocess imported from subprocess
? _scproxy imported from urllib.request
? _ssl imported from ssl
? bz2 imported from encodings.bz2_codec, shutil, tarfile, zipfile
? cffi imported from PIL.Image, PIL.PyAccess
? doctest imported from heapq
? email imported from urllib.request
? email.message imported from http.client
? email.parser imported from http.client
? email.utils imported from urllib.request
? grp imported from pathlib, shutil, tarfile
? java.lang imported from xml.sax._exceptions
? numpy imported from PIL.ImageFilter
? org.python.core imported from copy, xml.sax
? os.path imported from os, py_compile, tracemalloc
? pathlib2 imported from PIL.Image
? pickle imported from tracemalloc
? posix imported from os
? pwd imported from getpass, netrc, pathlib, posixpath, shutil, tarfile
? pyexpat imported from xml.parsers.expat
? select imported from selectors, subprocess
? termios imported from getpass

然后我在运行exe时看到此错误

这是setup.py

from cx_Freeze import setup
from cx_Freeze import Executable

includes = []
excludes = ["_tkagg", "_gtkagg", "_cairo", "_agg2", "_cocoaagg", "_fltkagg",             "_gtk", "_gtkcairo", "_wx", "test",
        "sqlite3",
        "bsddb", "curses", "email", "pywin.debugger", "pywin.debugger-dbgcon", "pywin.dialogs", "tcl", "_ssl",
        "pyreadline", "doctest", "optparse", "pickle", "pdb", "Tkinter", "Tkconstants", "wx", "PySide", "pydoc",
        "doctest",
        "_ctypes", "_hashlib", "bz2", "pyexpat", "select", "win32api", "win32pdh", "win32pipe"]

exe = Executable(
    script="File.pyw",
    initScript=None,
    base="Win32GUI",

)

setup(
    name="File",
    version="0.0",
    description=u"la",
    long_description=u"la la la",
    author="Me",
        options={
        "build_exe": {
            "includes": includes,
            "excludes": excludes,
            "optimize": 2,
        }
    },
    executables=[exe]
)

我在cmd中不了解此错误是什么,我看到正在复制Pil 我做错了什么?

0 个答案:

没有答案