[947]ImportError: [joblib] Attempting to do parallel computing without protecting

python报错ImportError: [joblib] Attempting to do parallel computing without protecting

image.png
错误:

ImportError: [joblib] Attempting to do parallel computing without protecting your import on a system that does not support forking. To use parallel-computing in a script, you must protect your main loop using “if __name__ == '__main__'”. Please see the joblib documentation on Parallel for more information

解决方案:

if __name__=='__main__'://加入此行代码即可
已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 博客之星2020 设计师:CY__ 返回首页