Flet desktop-app to extract Japanese reading with SudachiPy .
Create venv.
python -m venv .venv
Install packages:
python -m pip install flet
python -m pip install sudachipy
python -m pip install sudachidict_core
Build pyinstaller locally (.exe
generated with pip-installed pyinstaller is often considered as virus by security soft):
git clone https://github.com/pyinstaller/pyinstaller
cd .\pyinstaller\bootloader\
python .\waf all
- Build would fail, but it is ignorable.
- Visual Studio C++ compiler is required for build.
- It can be installed with Scoop :
scoop install vcredist2015
.
- It can be installed with Scoop :
- In my environment, 2015 and 2022 were installed. If just installing vcredist2015 results in error, try installing the latest version as well.
cd ..
(move topyinstaller
directory)pip install .
- Delete
pyinstaller
folder.- This folder is used only for package build and no longer used.
-
Enter venv (skippable on VSCode)
.\.venv\Scripts\activate
-
Run:
pyinstaller --onefile --name yomi --collect-data sudachidict_core --collect-data sudachipy --noconsole main.py
- If error was raised around pathlib, uninstall it:
python -m pip uninstall pathlib -y
- After build, re-install:
python -m pip install pathlib
- If error was raised around pathlib, uninstall it:
-
Exit from venv (skippable on VSCode)
deactivate
Sudachi and SudachiDict are both licensed under the Apache License, Version2.0 .