Substitute pine nuts with walnuts, cashews, pecans, almonds, pistachios, or sunflower seeds. If you need a nut-free pesto, sunflower seeds are a great option.