You could buy a few solar panels, an inverter, a dehumidifier, and a water filter and be fine. The problem is sizing the power generation and dehumidifier to match and generate an amount of water meaningful to you.
Regardless you need quite a bit of solar to get a decent amount of water.
Given that a dehumidifier is prime bacteria habitat, I'd recommend probably also putting it through UV sterilisation (or ozone or chlorine) before a decent filter cartridge before drinking. But yeah, the energy required is so high that it's usually one of the least useful ways of getting water in most places.
Regardless you need quite a bit of solar to get a decent amount of water.