Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py代码加了多线程后运行出错怎么解决 #92

Open
oouu00 opened this issue Sep 14, 2024 · 1 comment
Open

py代码加了多线程后运行出错怎么解决 #92

oouu00 opened this issue Sep 14, 2024 · 1 comment

Comments

@oouu00
Copy link

oouu00 commented Sep 14, 2024

py文件直接运行是可以的
但是pyinstaller打包也是一样的出错,表现为会运行一堆的程序,解决办法是在 if name=='main:'下添加一句multiprocessing.freeze_support() 。
但是pystand这样还是不行,有没有解决办法

@yunluo
Copy link

yunluo commented Sep 17, 2024

这个叫多进程,搜索一下吧,之前有人反馈过类似问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants