图像

pyinstaller complex config

这个结合django的应用好像就比较复杂了,虽然最后exe还是缺包,但离成功不远了。

# getuserinfo.spec

# -*- mode: python -*-
a = Analysis(['getuserinfo.py'],
             pathex=['D:/soft/Python27/Lib/', 'F:/pycode/wechatuser', 'F:/pycode/wechatuser/wechat', 'D:/soft/Python27/Lib/site-packages/', 'D:/soft/Python27/Lib/site-packages/django/', 'D:/soft/Python27/Lib/site-packages/django/apps'],
             hiddenimports=[],
             hookspath=['D:/soft/Python27/Lib/', 'F:/pycode/wechatuser/', 'D:/soft/Python27/Lib/site-packages/django/'],
             runtime_hooks=['D:/soft/Python27/Lib/htmlentitydefs.py', 'D:/soft/Python27/Lib/HTMLParser.py'])
pyz = PYZ(a.pure)
exe = EXE(pyz,
          a.scripts,
          a.binaries,
          a.zipfiles,
          a.datas,
          name='GetUserinfo.exe',
          debug=False,
          strip=None,
          upx=True,
          console=True , version='verson.txt', icon='lst.ico')

One thought on “pyinstaller complex config

发表评论