If you are a citizen of Morocco, you will need a visa to visit Peru as a tourist.
Because I am a resident of the State of Arizona, the closest consulate of Peru is the one in Los Angeles: Consulado General del Perú en Los Angeles”
While visa requirements vary, I want to bring to your attention that an itinerary flight ticket is required. You do not have to buy a ticket, but you need a reservation. I got mine from https://visareservation.com/ . The flight itinerary costs $55.
I went to the consulate in Los Angeles, California. A pre-arranged appointment is usually not needed as they take walk ins. The earliest you arrive the better.
I explained to the consulat that I live outside of LA and need to fly back home by the end of the day. They promised they’ll try to finalize the process as soon as possible.
I waited for less than an hour and they got back to me saying that my visa was “Approved” I was so excited!! They asked me to leave my passport with them and an envelope with the address I wanted my passport to be shipped to
By the end of the week, I received my passport and started my planning to hike the Inca Trail