python启动多进程时,may have been in progress in another thread when fork() was called

python启动多进程时,may have been in progress in another thread when fork() was called。

python启动多进程时,may have been in progress in another thread when fork() was called_第1张图片

解决方法:

pycharm中 -- 点击run -- Edit Configurations... -- 修改Environment varibles为OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES -- 保存

  • python启动多进程时,may have been in progress in another thread when fork() was called_第2张图片
  • python启动多进程时,may have been in progress in another thread when fork() was called_第3张图片

参考 : https://blog.csdn.net/weixin_30929195/article/details/96524364

你可能感兴趣的:(python启动多进程时,may have been in progress in another thread when fork() was called)