skywind3000 / skywind3000/PyStand
py代码加了多线程后运行出错怎么解决
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Description
py文件直接运行是可以的
但是pyinstaller打包也是一样的出错,表现为会运行一堆的程序,解决办法是在 if name=='main:'下添加一句multiprocessing.freeze_support() 。
但是pystand这样还是不行,有没有解决办法
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.
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.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100