You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to make multiprocess work with pyinstaller builds? The built in multiprocessing module has support for this using the freeze_support() function.
Can you give me more details, and maybe show me what you are experiencing? I would expect multiprocessing to work, as it's part of the python distribution and nothing needs to be installed. The multiprocess install is pure python, but is slightly non-standard (due to setup.py detecting the version of python being used and then building from the correct version of the multiprocess source). The freeze_support code in multiprocess is identical to the code in multiprocessing.
I just ran into this problem too! This has nothing to do with the multiprocess library -- turns out that Pyinstaller patches multiprocessing.freeze_support / multiprocessing.spawn.freeze_support; see their patch here.
I was able to fix this issue by patching multiprocess.freeze_support in the same way at the top of my script :)
Activity
mmckerns commentedon Oct 21, 2022
Can you give me more details, and maybe show me what you are experiencing? I would expect
multiprocessingto work, as it's part of the python distribution and nothing needs to be installed. Themultiprocessinstall is pure python, but is slightly non-standard (due tosetup.pydetecting the version of python being used and then building from the correct version of themultiprocesssource). Thefreeze_supportcode inmultiprocessis identical to the code inmultiprocessing.gkane26 commentedon Dec 16, 2025
I just ran into this problem too! This has nothing to do with the multiprocess library -- turns out that Pyinstaller patches multiprocessing.freeze_support / multiprocessing.spawn.freeze_support; see their patch here.
I was able to fix this issue by patching multiprocess.freeze_support in the same way at the top of my script :)