There’s a multiprocessing.freeze_support() which has to be called in your if __name__ == "__main__:" block. I’ve never used joblib so I don’t know if they’ve wrapped it up in their own API but it should be enough just to use the original from multiprocessing directly.