我的代码在IDLE中工作,但是当我尝试使用py2exe时出现错误,我使用的是Python 3.4.4版。
running py2exe
33 missing Modules
------------------
? Cookie imported from redminelib.packages.requests.compat
? OpenSSL imported from redminelib.packages.requests.packages.urllib3.contrib.pyopenssl
? Queue imported from redminelib.packages.requests.packages.urllib3.connectionpool
? _abcoll imported from redminelib.packages.requests.packages.urllib3.packages.ordered_dict
? backports imported from redminelib.packages.requests.packages.urllib3.packages.ssl_match_hostname
? cairosvg imported from pygal.graph.public
? certifi imported from redminelib.packages.requests.certs
? chardet imported from redminelib.packages.requests.packages
? cookielib imported from redminelib.packages.requests.compat
? cryptography imported from redminelib.packages.requests.packages.urllib3.contrib.pyopenssl
? django imported from pygal.graph.public
? flask imported from pygal.graph.public
? idna imported from redminelib.packages.requests.models, redminelib.packages.requests.packages.urllib3.contrib.pyopenssl
? lxml imported from pygal.etree, pygal.graph.public, pygal.table
? netbios imported from uuid
? packaging imported from pkg_resources
? pyquery imported from pygal.graph.public
? readline imported from cmd, code, pdb
? scipy imported from pygal.stats
? simplejson imported from redminelib.packages.requests.compat
? six imported from redminelib.packages.requests.packages.urllib3.contrib.pyopenssl
? socks imported from redminelib.packages.requests.packages.urllib3.contrib.socks
? urllib.getproxies imported from redminelib.packages.requests.compat
? urllib.getproxies_environment imported from redminelib.packages.requests.compat
? urllib.proxy_bypass imported from redminelib.packages.requests.compat
? urllib.proxy_bypass_environment imported from redminelib.packages.requests.compat
? urllib.quote imported from redminelib.packages.requests.compat
? urllib.quote_plus imported from pygal._compat, redminelib.packages.requests.compat
? urllib.unquote imported from redminelib.packages.requests.compat
? urllib.unquote_plus imported from redminelib.packages.requests.compat
? urllib.urlencode imported from redminelib.packages.requests.compat
? urllib3 imported from redminelib.packages.requests.packages
? win32wnet imported from uuid
Building 'dist\collectStatistic.exe'.
Building shared code archive 'dist\library.zip'.
Copy c:\windows\system32\python34.dll to dist
设置文件为:
from distutils.core import setup
import py2exe
setup(console=['collectStatistic.py'])
我以前将py2ex用于其他脚本,但是模块数量不多,我怀疑为了解决此问题,我需要更改安装文件。 真的很期待您的建议! 诚实地在询问之前搜索了论坛!