python之ProcessPoolExecutor
2021-05-18 18:30
标签:produce app adp pre thread 需要 main ESS 问题 出现这个需要检查多进程代码的调用,看看是不是在 name检查语句里,如果不在,放在里面就可以了 python之ProcessPoolExecutor 标签:produce app adp pre thread 需要 main ESS 问题 原文地址:https://www.cnblogs.com/xkxjy/p/9744203.htmlProcessPoolExecutor使用上基本与ThreadPoolExecutor一致
不过在windows上使用,有个问题需要注意。使用不当会出现如下错误File "...\lib\multiprocessing\spawn.py", line 137, in _check_not_importing_main
is not going to be frozen to produce an executable.‘‘‘)
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
if __name__ == ‘__main__‘:
main()
文章标题:python之ProcessPoolExecutor
文章链接:http://soscw.com/index.php/essay/87316.html