Preheat the oven to 350 degrees F. Grease and line two 9-inch cake pans with parchment paper.
In a medium bowl, whisk together the flour, baking powder, baking soda, salt, and spices. Set aside.
In a large bowl, whisk together the oil and sugars until fully combined.
Add in the vanilla and eggs, fully incorporating each before adding the next.
Fold the dry ingredients into the wet until just combined.
Then, fold in the grated carrots and pecans.
Divide the batter between the prepared cake pans.
Bake the cakes for about 35-40 minutes or until a toothpick inserted comes out clean and the cakes start to pull away from the sides.
Allow the cakes to cool in the pans for 15 min, then turn them out onto wire racks to cool completely.