`ProcessPoolExecutor` works on Ubuntu, but fails with `BrokenProcessPool` when running Jupyter 5.0.0 notebook with Python 3.5.3 on Windows 10
问题 I'm running Jupyter 5.0.0 notebook with Python 3.5.3 on Windows 10. The following example code fails to run: from concurrent.futures import as_completed, ProcessPoolExecutor import time import numpy as np def do_work(idx1, idx2): time.sleep(0.2) return np.mean([idx1, idx2]) with ProcessPoolExecutor(max_workers=4) as executor: futures = set() for idx in range(32): future = winprocess.submit( executor, do_work, idx, idx * 2 ) futures.add(future) for future in as_completed(futures): print(future