In short, yes, you need an inverter with a solar generator. Solar generators, also known as portable power stations, are essentially a combination of solar panels, batteries, and an inverter.
[pdf] Harnessing solar energy to power water pumps requires reliable and efficient inverters that convert solar DC power into usable AC power. Below is a curated selection of the best solar water pump inverters, ideal for off-grid and remote applications including RVs, boats, homes, and pools.
[pdf] According to the size and weight of the inverter, choose a suitable fixing method, such as using screws or installing a wall mount to fix it on the wall or other flat surface, and ensure that the inverter is installed firmly and not easy to shake.
[pdf]