I am going to reiterate here something I posted in another thread. If you want to use the git method (or indeed run from a downloaded unzipped archive), there is another way to set up your system besides virtual environments or pip install --editable. I do it this way because I have the standard python installation I started with, and then later I wanted to use git clones since I was doing some development on a plugin. Python uses an environmental variable just for purposes like this: PYTHONPATH.
Python will look for imports and library files in PYTHONPATH first. So I set it to point to the location of my Leo git clone. On my Windows machine, the command is:
set PYTHONPATH=d:\tom\git\leo-editor
(On Linux, of course,it would be more like
PYTHONPATH=....
export $PYTHONPATH
)
I find this way very satisfactory, because:
1. I get all the benefits of using a git clone;
2. I can go back to my standard install simply by not setting the variable;
3. If I want to work with a clone of some other Python library (such as rst2pdf, which I did a bit of work on), I just set PYTHONPATH to point there instead;
4. I get confused after a time when I set up more than a few virtual environments, because I forget what they were all for and what the state of their libraries and configuration is. This way I don't need those virtual environments.