I'm puzzled by the long, complicated paths being reported. I've never seen paths like that, at least not on Windows computers. A typical path on my system would be
C:\Users\tom\AppData\Roaming\Python\Python310\site-packages\leo\core
None of those caches and strange numbers; none of that PythonSoftwareFoundation stuff. Now, if you were installing, say, the Anaconda python environment, it might be different, but you haven't said.
I'm also puzzled by your install message "Successfully built leo". A normal install on Windows wouldn't build it. It would install a pre-built package.
You can find out where Leo is located in your file system like this:
py -c "import leo; print(leo.__file__)"
instead of "py", use whatever command you normally use to launch Python, like "python3" or whatever it is. On my Windows system, the result is
C:\Users\tom\AppData\Roaming\Python\Python310\site-packages\leo\__init__.py
As for the enchant package, I wouldn't have thought that Leo wouldn't run without it. Leo's code that tries to import it and to use it isn't active if the enchant package can't be imported. In fact, it looks like the enchant module exists but in a weird way. The message
'C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\enchant\data\mingw64/lib/enchant-2\enchant_hunspell.dll': The specified module could not be found.
has an impossible path (one with some forward slashes), and the fact that it was built with the mingw compiler system is very non-standard for a normal Windows install. It again makes me think that you installed using some environment like Anaconda or some such, and the installer got confused by a mixture of Windows and Linux paths.
I suggest that you try installing Python and then Leo directly from a Windows console - assuming that you are really on Windows, as indicated by the path "C:\Users\user\AppData\Local\Packages". BTW, an ordinary Python install gets located into "C:\Users\user\AppData\Local\Programs", again showing that there is something non-standard about your install. Download the Windows Python3 installer from
python.org. Run it - don't use Anaconda or any other pre-packaged environment for Python - just double-click on its icon. When that is finished, run it and check to make sure you are actually running the newly installed version. The install should have installed a launcher that you can invoke by just typing "py" in a Windows console windows (i.e., a cmd.exe window).
Once that has been done, install Leo using pip. I suggest installing the latest version. You should make sure you are using the pip program that belongs to your newly-installed python, and the best way to do that is to run it as a module:
py -m pip install leo
Again, if "py" isn't the right command to launch the newly installed Python executable, type the right command name instead.
You can check to see if the newly installed python package uses the standard Windows system paths:
py -c "import sys; print('\n'.join(sys.path))"
You should see something much like this:
C:\Users\tom\AppData\Local\Programs\Python\Python310\python310.zip
C:\Users\tom\AppData\Local\Programs\Python\Python310\DLLs
C:\Users\tom\AppData\Local\Programs\Python\Python310\lib
C:\Users\tom\AppData\Local\Programs\Python\Python310
C:\Users\tom\AppData\Roaming\Python\Python310\site-packages
C:\Users\tom\AppData\Local\Programs\Python\Python310\lib\site-packages
C:\Users\tom\AppData\Local\Programs\Python\Python310\lib\site-packages\win32
C:\Users\tom\AppData\Local\Programs\Python\Python310\lib\site-packages\win32\lib
C:\Users\tom\AppData\Local\Programs\Python\Python310\lib\site-packages\Pythonwin
Notice that these paths are much shorter and simpler than the paths reported in the error messages from your previous attempt, and they are mostly in "C:\Users\tom\AppData\Local\Programs", not "C:\Users\tom\AppData\Local\Packages".
Once installed, make sure to run the version of Leo that you just installed and not some other. This is important because your earlier attempts might have left a path that would launch some other version. The easiest way to make sure is:
py -m leo.core.runLeo
If this new install seems to work right, you can think again about whether you want to try to use whatever other environment is on your system (Anaconda or whatever). You probably won't need it.