One way to do it is to take multiple identical shots on a tripod... Spread over a few minutes. Then layer the pictures, and erase the people. Since people move... Erase them in one layer, and the next layer may be empty. Or go to the next layer, etcetera.