runtimeerror: an attempt has been made to start a new process before the current process has finished its bootstrapping phase. this probably means that you are not using fork to start your child processes and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ... the "freeze_support()" line can be omitted if the program is not going to be frozen to produce an executable.
时间: 2023-05-02 09:05:29 浏览: 1446
Python RuntimeError: thread.__init__() not called解决方法
运行时错误:在当前进程完成引导阶段之前尝试启动新进程。这可能意味着您没有使用fork来启动子进程,或者您忘记在主模块中使用正确的惯用语句:如果__name__ =='__main__':freeze_support()....如果程序不打算冻结以产生可执行文件,则可以省略“freeze_support()”行。
阅读全文