How to Solve NameError: name 'archive_util' is not defined -- distutils

Solution: Import the 'archive_util' module

# Add the following line to the top of your code
from distutils import archive_util

 

For more information:
distutils archive_util