py代码加了多线程后运行出错怎么解决
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
Research direction
Start by reproducing the multiprocessing behavior from a Python entry point using PyStand, comparing direct execution with PyInstaller packaging. Check how multiprocessing.freeze_support() behaves under PyStand; done means a packaged multiprocessing application starts only its intended process instead of launching duplicate programs. No source file or test is named in the issue.
Written by the indexing model from the issue text.
Description
py文件直接运行是可以的
但是pyinstaller打包也是一样的出错,表现为会运行一堆的程序,解决办法是在 if name=='main:'下添加一句multiprocessing.freeze_support() 。
但是pystand这样还是不行,有没有解决办法
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from skywind3000/PyStand
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
skywind3000/PyStand#111 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
skywind3000/PyStand#109 · 5 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
skywind3000/PyStand#105 · 3 reactions ·
-
文档拉胯 Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
skywind3000/PyStand#104 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
skywind3000/PyStand#102 · 5 comments ·
All issues in skywind3000/PyStand
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100