python - py2exe missing Modules ?

查看:895
本文介绍了python - 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文件可以正常运行并输出正确结果)

解决方案

py2exe年久失修了,用pyinstall

这篇关于python - py2exe missing Modules ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆