python报错ImportError: [joblib] Attempting to do parallel computing without protecting
错误:
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
解决方案:
代码语言:javascript复制if __name__=='__main__'://加入此行代码即可