搜尋

首頁  >  問答  >  主體

py2exe missing Modules ?

代码如下:

#!/usr/bin/env python3
# -*- coding:utf-8 -*-

from distutils.core import setup
import py2exe

setup(console=['1_lsb_hide.py'])

输入:running py2exe

运行结果:

error: [Errno 2] No such file or directory:'C:\Users\Username\AppData\Local\Programs\Python\Python35\lib\site-packages\py2exe\run-py3.5-win-amd64.exe'

21 missing Modules ------------------ 
? PIL._imagingagg imported from PIL.ImageDraw ?
PyQt4 imported from PIL.ImageQt ? PyQt5 
imported from PIL.ImageQt ? PySide 
imported from PIL.ImageQt ? _imaging_gif 
imported from PIL.GifImagePlugin ? _util 
imported from PIL.ImageCms ? backports 
imported from setuptools.ssl_support ? certifi 
imported from setuptools.ssl_support ? multiprocessing.SimpleQueue 
imported from concurrent.futures.process ?
pkg_resources.extern.appdirs imported from pkg_resources ?
pkg_resources.extern.packaging imported from pkg_resources,
setuptools.command.egg_info, setuptools.dist ?
pkg_resources.extern.six imported from pkg_resources ?
setuptools.extern.six imported from setuptools,
setuptools.command.bdist_egg, setuptools.command.easy_install,
setuptools.command.egg_info, setuptools.command.py36compat,
setuptools.command.sdist, setuptools.command.setopt,
setuptools.depends, setuptools.dist, setuptools.extension,
setuptools.glob, setuptools.monkey, setuptools.package_index,
setuptools.sandbox, setuptools.ssl_support, setuptools.unicode_utils ?
setuptools_svn imported from
setuptools.command.egg_info ? testing 
imported from cffi.recompiler ? tkinter 
imported from PIL.ImageTk, PIL._tkinter_finder ? urllib.splittag 
imported from setuptools.py26compat ? win32com 
imported from setuptools.sandbox ? win32evtlog 
imported from logging.handlers ? win32evtlogutil 
imported from logging.handlers ? wincertstore 
imported from setuptools.ssl_support Building 'dist1_lsb_hide.exe'.

请问我应该怎么正确得到输出的exe程序?

(要生成exe的.py文件可以正常运行并输出正确结果)


高洛峰高洛峰2973 天前1537

全部回覆(1)我來回復

  • 三叔

    三叔2016-10-29 09:02:29

    py2exe年久失修了,用pyinstall

    回覆
    0
  • 取消回覆