Mash the butter and sugar with a fork until creamy.
Mix in the almond flour, then the egg, then the flour.
Spread the almond cream evenly over the pie crust.
Peel, halve, and core the pears. If using canned pears, drain and pat them dry.
Slice each pear half crosswise, keeping the slices together.
Arrange over the almond cream, gently spreading the slices into a fan.
Sprinkle with sliced almonds, if using.
Bake in a preheated oven for 35-45min, until the almond cream is golden and set and the crust is fully baked.
Let cool before slicing.
