1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > python-用pyinstaller打包.py文件时 出现maxium recursion depth exceeded解决办法

python-用pyinstaller打包.py文件时 出现maxium recursion depth exceeded解决办法

时间:2020-04-15 13:51:22

相关推荐

python-用pyinstaller打包.py文件时 出现maxium recursion depth exceeded解决办法

出现的问题如图:

解决办法:

在你要打包的.py文件路径下,会出现同名的.spec文件,用notepad打开该文件,在第二行添加上如下两句:

import sys

sys.setrecursionlimit(10000)

保存关闭该文件,然后在终端上输入:

pyinstaller xxx.spec即可。我的是pyinstaller dataConvert_v1.2.spec。

就是用notepad打开图片中这个.spec文件:

然后在第二行添加上这两句话:

在终端上输入:pyinstaller xxx.spec即可。

执行成功后会出现图片中的successfully。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。