How to Solve NameError: name 'copy2' is not defined -- shutil
Solution: Import the 'copy2' module
# Add the following line to the top of your code
from shutil import copy2
For more information:
shutil copy2
# Add the following line to the top of your code
from shutil import copy2
For more information:
shutil copy2