Sometimes PyQtWebEngine has to be installed separately after PyQt.  I don't 
know about the Mac.  If you installed PyQt6, the WebEngine isn't available  
yet; almost all of Leo will work without it but the installer might 
complain as in your case.  If so, try installing PyQt5 and its WebEngine.  

Another thing that has worked is to install a much earlier version of Leo, 
such as 6.3, or even 6.1.  Once it is installed and working, then use pip 
to upgrade Leo to the latest.  This has worked for some people; I did it 
for a Linux installation myself.  You get pip to install a specific version 
this way:

pip install --user leo==6.3

Pip will complain if you ask for a version that isn't on Pypi.  
Unfortunately it's almost impossible any more to get a list of all the 
available versions. Pip has been "improved" too much, and has lost that 
ability.  And the Pypi way to get the list has been broken for some time.  
(You don't need to use the "--user" but it seems to be a good idea on linux 
especially, so I assume on a Mac it would be good too).

You could try downgrading the PyQt install to one of the versions that 
Leo's install requirements ask for.  For example, you may have installed 
say pyqt5.15.6.  Try downgrading to say pyqt5.12.  I forget exactly what 
pip thinks that Leo needs, but 5.12 or even 5.10 ought to work.

Finally. you could install from the Github repository.  Not with pip, I 
mean to actually clone the repo to your computer and tell Python to use 
that version.  Each time that trying to run Leo complains about a missing 
package, install that using pip. Eventually you will have everything 
needed.  This way could be more of a pain initially, but you would be also 
able to use the latest and greatest developmental versions if you wanted 
to.  We can give you some guidance if you want to go this route.  I think 
that the latest release would be the 6.5 branch (6.6 is almost ready).

At some point, the state of PyQt6 should stabilize, and the list of 
required package versions for pip will get adjusted, and this kind of 
installation problem should go away.  In the meantime, try one of the 
above.  I'd start by installing an earlier version, myself.

On Wednesday, December 8, 2021 at 8:50:11 AM UTC-5 [email protected] wrote:

> HI,
>
> First off, thank you for all the effort you've put into creating Leo, 
> which looks like a very interesting tool. I say "looks like" because I 
> haven't been able to get it installed.
>
> I've installed (on a Mac) all of qt. I then tried "pip install leo" only 
> to be met with this:
>
> ERROR: Could not find a version that satisfies the requirement 
> PyQtWebEngine (from leo) (from versions: none)
>
> ERROR: No matching distribution found for PyQtWebEngine (from leo)
>
>
>
> Any assistance that you could give would be greatly appreciated.
>
>
> Thanks in advance.
>
>
> Mike Doffing
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/a009d9da-d1fa-456e-8471-46c9b3663d57n%40googlegroups.com.

Reply via email to