美文网首页
【python bug01】python mac 启用多进程报错

【python bug01】python mac 启用多进程报错

作者: 滕的世界 | 来源:发表于2018-11-14 11:26 被阅读16次

报错

may have been in progress in another thread when fork() was called”
  • 解决办法:添加环境变量,网上都是说的这个,亲测有效
  • 打开pycharm,点击run,点击editConfig,点击environment varibles 将下面一段copy进去即可
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

相关文章

网友评论

      本文标题:【python bug01】python mac 启用多进程报错

      本文链接:https://www.haomeiwen.com/subject/zdbdfqtx.html