Most users will want to install LPCG through AnkiWeb. This is the easiest method, and it lets you get updates automatically.
If you want to do development on LPCG, you can install it from source. The source is available at GitHub.
- Clone the Git repository.
- Create a virtual environment with
python -m venv venv, and activate it (usually
- Install Python dependencies with
pip install -r requirements.txt. LPCG is tested on Python 3.7 but will probably work on 3.6 or 3.8 too.
- Ensure you have PyQt5 and the
maketo generate code for the dialog from Qt Designer (among other things).
To run the add-on within Anki,
symlink or move the
src directory into your Anki add-ons directory.
pytest from the root directory will run the unit tests.