美文网首页
mac python多进程报错

mac python多进程报错

作者: 后来_16db | 来源:发表于2019-07-25 13:33 被阅读0次
  1. 如果要在命令行中执行python脚本,则在.bash_profile中添加export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES,然后source .bash_profile

  2. 如果要在pycharm中执行python脚本
    打开pycharm,点击run,点击editConfig,点击environment varibles 将下面一段copy进去即可
    OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

相关文章

网友评论

      本文标题:mac python多进程报错

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