When I used joblib for multi-process concurrency, I encountered an error:
_pickle.PicklingError: Could not pickle the task to send it to the workers.
Solution 1:
Solution: import dill as pickle dill
But where does this code import dill as pickle need to be added?
The comment below the answer, a few people also asked, where to add it?
Solution 2:
Serialization of un-picklable objects
It does not work in my code.