(I installed python 3.9, to use the latest Leo - and PyQt5 as per the official doc on Leo'S website about it being the only dependency https://leoeditor.com/installing.html#dependencies )
If you want to try using PyQt5, you can pip-install it by hand. Here's how I get Leo to use PyQt5 instead of PyQt6; I think it's the easiest way to do it. I navigate to Lib/site-packages and find the PyQt5 and PyQt6 directories. I just rename the PyQt6 directory to something else, usually PyQt6x. Then Leo won't be able to import it and should fall back to using PyQy5. When you are satisfied that Leo works with PyQt5, just rename PyQt6x back to PyQt6 and restart Leo.