In a large soup pot or Dutch oven, heat the olive oil or melt the butter over medium heat.
Add the chopped onion and minced garlic. Sauté for about 5-7 minutes, or until the onions are soft and translucent.
Add the canned pumpkin to the pot and stir well.
Season the mixture with the ground cinnamon, nutmeg, ginger, salt, and pepper. Continue to stir, ensuring the spices are evenly distributed.
Pour in the vegetable or chicken broth and bring the mixture to a gentle simmer. Allow it to cook for about 10-15 minutes, stirring occasionally to meld the flavors.
Reduce the heat to low, and then stir in the heavy cream (or coconut milk) to the soup. Let it heat through but avoid boiling.
Taste the soup and adjust the seasoning with additional salt and pepper if necessary.
Serve hot, garnished with your choice of toppings, such as roasted pumpkin seeds, fresh parsley, or a dollop of sour cream or yogurt.