I have almost the same problem as the person in this post: python ProcessPoolExecutor do not work when in function. However in my code the funtion I am trying to call is an imported function located in another file via: from pythonfile import main How can I let the ProcessPoolExecuter run this main process? Continue reading...