zoukankan      html  css  js  c++  java
  • Mac上PyCharm运行多进程报错的解决方案

    Mac上PyCharm运行多进程报错的解决方案

    运行时报错

    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.
    

    解决方案

    添加环境变量: 点击窗口上的Run->Edit Configurations...->Environment variables->点击输入栏后的文件夹图标,

    添加内容,key: OBJC_DISABLE_INITIALIZE_FORK_SAFETY, value: YES.

    完整示例, OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

  • 相关阅读:
    初识网络编程
    实参和形参
    函数的组成部分及函数参数
    字符编码与文件操作2
    day07
    day06
    day05
    day03
    drf规范
    JQ
  • 原文地址:https://www.cnblogs.com/zzhaolei/p/11068024.html
Copyright © 2011-2022 走看看