In a deep bowl, combine flour, egg, butter, baking powder, sugar and spices. Mix everything with a mixer until smooth.
Roast the walnuts in a dry frying pan until golden brown and cool.
Using a spatula, mix the grated carrots and ground walnuts into the dough.
Leave the dough in a warm place for 10 minutes.
Pour the dough into the pan and place in a preheated oven for 30 minutes.
Prepare the cream: combine the cream with sugar and beat until stiff peaks form. Refrigerate the cream for 10 minutes.
Cut the finished pie into portions and serve with cream.