In Patagonia

https://en.wikipedia.org/wiki/Blackthorn_(film)
Butch Cassidy and the Sundance Kid sequel!

“Twenty years after his disappearance in 1908, an aged Butch Cassidy (Sam Shepard), living under the assumed name James Blackthorn in a secluded village in Bolivia, decides to end his long exile and return to the United States after learning of the death of Etta Place.

…Eduardo Apodaca (Eduardo Noriega), a Spaniard mining engineer who claims he was shooting at pursuers. He begs Blackthorn to save him, and offers to share part of the $50,000 he stole from Simón Patiño, a powerful Bolivian industrialist and mine owner. The money is hidden in an abandoned mine, and he will compensate Blackthorn for his help.”

Great movie, many scenic locations… was it shot in Bolivia?