How to Solve NameError: name 'conf' is not defined -- astropy

Solution: Import the 'conf' module

# Add the following line to the top of your code
from astropy.utils.data import conf

 

For more information:
astropy conf