How to Solve NameError: name 'Earth' is not defined -- poliastro

Solution: Import the 'Earth' module

# Add the following line to the top of your code
from poliastro.bodies import Earth

 

For more information:
poliastro Earth