Got a DC pool pump motor?
You're right it would be simple. And some brushless DC do that. I run fans that way, off a couple solar panels.
If the $200 photovoltaic VFD is good, that's reasonably economical. But 3-phase pool pump motors don't come cheap.
The existing ac pool pump motor will have a shrouded fan at the back to blow cooling air across the motor fins.
Remove the fan and fit a toothed pulley.
Connect that through a belt to the dc motor of your choice.
Use reasonably large diameter pulleys, and with a toothed belt, it does not need to be stretched super tight to prevent slippage.
That will keep the drive system as efficient as possible.
Now the ac pool pump motor, new dc motor, and the solar panels all have rating plates attached, from which you can get enough information to make a pretty good attempt at establishing a suitable pulley ratio and number of solar panels required.
An internet search may uncover even more details from which to engineer your system.
What happens is if the dc motor were completely stalled, the solar panels will be putting out max available short circuit current, or something pretty close to it.
The motor will be generating its maximum stalled torque at zero rpm at full rating plate amps.
The pump impeller requires almost no effort to initially start turning.
The motor rapidly accelerates up to the point where the impeller consumes all of the available motor torque. The solar panel voltage rises too as motor speed increases.
If you judge it just right, you can tweak the pulley ratio and number of solar panels so max pump power coincides with max peak power developed at the solar panels. Its so simple, and the most efficient system possible. Even on cloudy days it will shift enough water to be quite effective.
There is a thread about someone doing exactly this with a secondhand treadmill motor, with lots of pictures and information over on The Back Shed Forum.
If you plan to use the original pump motor grid connected, and run it for extended periods, it should be possible to rig up an external grid powered cooling blower to replace the fan removed from the motor shaft. Those original crude little plastic fans are pretty crappy, and the ac pump motor may not really need any extra cooling anyway.