How to Solve NameError: name 'copytree' is not defined -- shutil
Solution: Import the 'copytree' module
To Solve the error, add the following line to the top of your code.
from shutil import copytree
For more information:
Python shutil copytree