py2exe missing Modules ?
高洛峰
高洛峰 2016-10-29 09:02:13
0
1
1549

代码如下:

#!/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文件可以正常运行并输出正确结果)


高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

répondre à tous(1)
三叔

py2exe年久失修了,用pyinstall

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal