开发者社区 问答 正文

【OSS】在Mac环境中Python多线程运行报错,是什么原因?

已解决

在Mac环境中用Python启动多线程并在子线程中使用OSS时,import tensorflow会报错,没有import tensorflow则不会报错。如果没有启动多线程,使用OSS时import tensorflow不会报错。

objc[2483]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called.
objc[2483]: +[__NSPlaceholderDate initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

展开
收起
云上猫猫 2022-01-19 17:04:32 4986 分享 版权
1 条回答
写回答
取消 提交回答