python 3.7 中实用py2exe打包成exe出现问题,如图!
该如何正确的打包文件,遇到的这个问题该怎么解决?想把Python文件做成exe运行文件,谢谢各位!...
该如何正确的打包文件,遇到的这个问题该怎么解决?想把Python文件做成exe运行文件,谢谢各位!
展开
2个回答
展开全部
追问
Warning: 'keywords' should be a list, got type 'tuple'
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied
追答
经查阅,版本不兼容:
The failure you're seeing occurs in py2exe opcode parsing code, which, given the most recent posted version of py2exe only claims support for 3.3 and 3.4, could not possibly have knowledge of, or support for, the new wordcode opcodes; they hadn't even been conceived of at the time py2exe was last updated. The bytecode often changes in small ways from version to version that could break even Python 3.5 (given only 3.3 and 3.4 support is claimed explicitly), but 3.6 is 100% guaranteed to fail.存在版本不适用性,
但是对于其他版本应该没有什么问题,如果想用py2exe的朋友,可以尝试其他的版本
-----------------------------------------------------------------------------------
你可以看看这部分
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2019-01-21
展开全部
pyinstaller
难道不好用?
难道不好用?
追问
Pyinstaller 怎么使用?
追答
pip install pyinstaller
pyinstall -F test.py
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询