最近在学LDA主题模型分析,前面文本预处理的代码都调试好了,最后用pyLDAvis进行可视化的时候一直报错:TerminatedWorkerError:A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker.困扰了我好几天。

        之前一直都是在jupyter上面运行的,今天换到pycharm上运行,报错更加清晰joblib.externals.loky.process_executor.TerminatedWorkerError,去网上查了一下是因为joblib包版本过高(我的joblib版本是1.3.2),降低一下版本就行了。赶紧过来记录一下

pip install joblib==1.2.0

然后终于运行成功了

参考链接:https://github.com/joblib/loky/issues/411

Logo

永洪科技,致力于打造全球领先的数据技术厂商,具备从数据应用方案咨询、BI、AIGC智能分析、数字孪生、数据资产、数据治理、数据实施的端到端大数据价值服务能力。

更多推荐