I'd say this is how to get it installed using Anaconda, which apparently is not the same as using Python from python.org. For one thing, using python.org you don't have to install build tools to build pyqt5 (and note that Leo will also work with pyqt6) - pip installs a pre-built package.
Installing Leo from scratch on a new machine, following my preferences, some adjustment may be needed to match yours.
Overview
All but step 1 can be done from the command line, below.
From a CMD shell (https://gist.github.com/maphew/fe6e5c2ccbf48fc82d84b4230e476899):
winget install wget
md c:\bin
wget https://raw.githubusercontent.com/chocolatey/choco/blob/master/src/chocolatey.resources/redirects/RefreshEnv.cmd -O c:\bin\RefreshEnv.cmd
setx /M path %path%;c:\bin
winget install --id Python.Launcher --exact --force
winget install python.python.3.12 --location c:\apps\python
refreshenv
py -0
where python
sudo setx /M PIPX_BIN_DIR C:\bin
sudo setx /M PIPX_HOME C:\apps\pipx
c:\apps\python\python.exe -m pip install pipx
c:\apps\python\python.exe -m pipx ensurepath
refreshenv
Choose:
:: Install latest stable release from pypi.org
pipx install leo
Or:
:: Or install latest development from GitHub with git
pushd %userprofile%\code
git clone --depth=50 --no-single-branch https://github.com/leo-editor/leo-editor
pipx install --editable ./leo-editor
Or:
:: Or install latest development from source code download
winget install 7zip
pushd %userprofile%\Downloads
wget https://github.com/leo-editor/leo-editor/archive/devel.zip
7z x devel.zip -o
C:\apps
pipx install --editable C:\apps\leo-editor-devel
Resume
pipx inject leo websockets
leo-messages --version
:: run Leo to create profile and related, and then exit
Leo
:: Register Leo with Windows
leo-m --script=C:\apps\pipx\venvs\leo\Lib\site-packages\leo\scripts\add-desktop-links.leox
leo-m --script=C:\apps\pipx\venvs\leo\Lib\site-packages\leo\scripts\win\register-leo.leox
Notes
Python, pipx, and Leo are installed globally outside of user profile directory tree.
Several listed commands are optional. For example `where python` is merely a sanity check to see it it's in PATH and what folder it's in.
Pipx is for installing python programs in their own virtual environment, so they behave like regular programs that can have independent python versions and depencies from other python programs. It's lighter weight than conda and simpler than managing venvs directly.
Registering Leo with Windows can be done interactively via "Leo menu >> Settings >> Open desktop integration".
Websockets is optional, it's for using LeoInteg extension in Visual Studio Code.
----
-matt
Additional note: Refreshenv allows carrying out all commands in a single session. Without this opening a new CMD shell several times to catch changes each of the installs make is necessary.
Installing Leo from Pypi on Py v3.12 will not work until next Leo release (see https://github.com/leo-editor/leo-editor/pull/3612 and https://github.com/leo-editor/leo-editor/issues/3615)