一、安装pyinstaller
先安装anacode,再去安装python。会有很多自带的lib库,可以省去很多麻烦。
1、用国外库安装
pip install pyinstalller
由于国外网络的限制,经常会报以下错误:
ERROR: Could not find a version that satisfies the requirement pyinstalller (from versions: none)
ERROR: No matching distribution found for pyinstalller
可以通过翻墙解决这一问题
2、用国内库安装
这里使用的是豆瓣的镜像进行安装
pip3 install pyinstaller -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com Looking in indexes: http://pypi.douban.com/simple/
如果出现以下问题:
这里主要是是‘enum'参数问题:
AttributeError: module 'enum' has no attribute 'IntFlag'
通过百度得知,是由于python版本的升级,导致了‘enum'出现兼容性问题,只要卸载‘enum'库就好了。
pip uninstall enum34
输出:
Found existing installation: enum34 1.1.6
Uninstalling enum34-1.1.6:
Would remove:
c:\programdata\anaconda3\lib\site-packages\enum34-1.1.6.dist-info\*
c:\programdata\anaconda3\lib\site-packages\enum\*
Proceed (y/n)"text-align: center">二、使用pyinstaller
1、pyinstaller常用选项
2、生成exepyinstaller -Fw main.py ui.py
最终生成main.exe
总结
更新日志
- 孙悦.1996-伙伴【正大国际】【WAV+CUE】
- 纪钧瀚《钢琴阅读时光 雨中书店聆听轻音乐》[FLAC/分轨][399.62MB]
- 证声音乐图书馆《走向自然 疗心爵士乐》[320K/MP3][87.4MB]
- 证声音乐图书馆《走向自然 疗心爵士乐》[FLAC/分轨][184.94MB]
- 陈慧娴.2018-Priscilla-Ism演唱会3CD(2024环球红馆40复刻系列)【环球】【WAV+CUE】
- 郑秀文.1999-我应该得到(国)【华纳】【WAV+CUE】
- 陈家慧.2011-钢琴酒吧2CD【龙吟唱片】【WAV+CUE】
- 证声音乐图书馆《雨季 蓝调吉他 Rainy Blues》[320K/MP3][45.01MB]
- 证声音乐图书馆《雨季 蓝调吉他 Rainy Blues》[FLAC/分轨][109.13MB]
- 赞多《序章》[320K/MP3][45.54MB]
- 许巍.2004-每一刻都是崭新的【步升大风】【WAV+CUE】
- 群星.2024-四方馆影视原声带【韶愔音乐】【FLAC分轨】
- 陈雷.1997-安锁咧【金圆唱片】【WAV+CUE】
- 关淑怡.2013-MY.FAVORITE.SK.3CD【环球】【WAV+CUE】
- Sweety.2006-花言乔语【丰华】【WAV+CUE】