How to Solve NameError: name 'ThreadPool' is not defined -- multiprocessing

Solution: Import the 'ThreadPool' module

To Solve the error, add the following line to the top of your code.

from multiprocessing.pool import ThreadPool

 

For more information:
Python multiprocessing ThreadPool