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