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