Hi, beginner here.I would like to ask you - is there any user-friendly installer for Leo?
I am using Windows and the old version Leo_5.3-b1_Win that I downloaded as a simple .zip, works fine but I am not able to install the latest version. :(I have Anaconda - and pip failed.
I downloaded the version from GitHub and install it from power-shell with pip, it failed also.
PS C:\Users\HOMEDIR\PyVE\PyPI\Leo> leo --use-docks
leo : The term 'leo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ leo --use-docks
+ ~~~
+ CategoryInfo : ObjectNotFound: (leo:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Enter code here...(base) C:\Users\HOMEDIR>python
Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import leo
>>> leo.run()
leoQt.py: can not fully import PyQt5.
Traceback (most recent call last):
File "C:\Users\HOMEDIR\AppData\Roaming\Python\Python37\site-packages\leo\core\leoQt.py", line 52, in <module>
from PyQt5 import QtCore
ModuleNotFoundError: No module named 'PyQt5.sip'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\HOMEDIR\AppData\Roaming\Python\Python37\site-packages\leo\__init__.py", line 10, in run
import leo.core.runLeo as runLeo
File "C:\Users\HOMEDIR\AppData\Roaming\Python\Python37\site-packages\leo\core\runLeo.py", line 25, in <module>
g.app = leoApp.LeoApp()
File "C:\Users\HOMEDIR\AppData\Roaming\Python\Python37\site-packages\leo\core\leoApp.py", line 338, in __init__
import leo.core.leoFrame as leoFrame
File "C:\Users\HOMEDIR\AppData\Roaming\Python\Python37\site-packages\leo\core\leoFrame.py", line 13, in <module>
import leo.core.leoColorizer as leoColorizer
File "C:\Users\HOMEDIR\AppData\Roaming\Python\Python37\site-packages\leo\core\leoColorizer.py", line 18, in <module>
from leo.core.leoQt import Qsci, QtGui, QtWidgets
File "C:\Users\HOMEDIR\AppData\Roaming\Python\Python37\site-packages\leo\core\leoQt.py", line 82, in <module>
qt_version = QtCore.QT_VERSION_STR
NameError: name 'QtCore' is not defined
Hello Iohannes,
pip install --editable c:\apps\leo-editor
python --version
pip install --editable c:\apps\leo-editor
leo-messages
thank you very much for your answer! I have followed your instruction. After some struggle (I had to change the maximal lenght of PATH of the filesystem), I have been able to install it. Yet, the last command gives me an error:
PS C:\Users\HOMEDIR\PyVE\PyPI\Leo> leo --use-docks
leo : The term 'leo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ leo --use-docks
+ ~~~
+ CategoryInfo : ObjectNotFound: (leo:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
...Any suggestion?
leo : The term 'leo' is not recognized as the name of a cmdlet, function, script file, or operable program.
thank you very much for your help. I have tried everything I could but everything failed. Finally, I have decided to reinstall Python and the recommended installation process by Matt went smoothly :).So maybe there was something wrong with my Python.
I have a couple of more question but I will make a separate post for them :). I guess it is better to do in that way.
In order for the bare command leo to work, the operating system has to know that it's a Python file and that it's supposed to open a Python file using Python. Sometimes this chain of identification doesn't get set up right. It seems like that was the problem when you got this error message:leo : The term 'leo' is not recognized as the name of a cmdlet, function, script file, or operable program.
It will not get set up if you just download a zip file and run from it. A pip install *may* do it, but I'm not sure.
What's more, if I set PYTHONPATH to point to my git clone location, the leo command launches Leo from there instead of from the standard install. Excellent - that's just what I would want.
OTOH, I don't see a leo.exe command in the Git clone. I suppose that it gets built somewhere for the Leo wheel for Windows, is that right?
What's more, if I set PYTHONPATH to point to my git clone location, the leo command launches Leo from there instead of from the standard install. Excellent - that's just what I would want.Cool, I didn't know that.