解决用pyLDAvis做可视化的时候报错:TerminatedWorkerError: A worker process managed by the executor was...

        最近在学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

然后终于运行成功了

解决用pyLDAvis做可视化的时候报错:TerminatedWorkerError: A worker process managed by the executor was..._第1张图片

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

你可能感兴趣的:(python,pip,conda)