Python xgboost: kernel died

前端 未结 2 962
不知归路
不知归路 2021-02-19 04:40

My Jupyter notebook\'s python kernel keeps dying. I have run all of the following code successfully before. Presently, there are issues. First, I will show you the code chunk th

相关标签:
2条回答
  • 2021-02-19 04:54

    I was having a similar problem. This fixed it for me.

    import os
    os.environ['KMP_DUPLICATE_LIB_OK']='True'
    from xgboost import XGBClassifier
    
    0 讨论(0)
  • 2021-02-19 05:02

    I had the same issue. The stupid thing is it was working fine, just suddenly decided it wants to go crazy! I tried @PandaRocks's solution. it did not work. I tried restarting stuff. even saw some stuff about a library file removal here.

    finally ended up solving it by reinstalling the XGBoost using conda as explained here:

    $ conda install -c conda-forge xgboost
    
    0 讨论(0)
提交回复
热议问题