Bundled esptool.py runs via sys.executable, which may be a Python that lacks pyserial (e.g. miniconda). Reorder find_esptool() to prefer pip-installed esptool first (handles its own deps), and only fall back to bundled/PlatformIO scripts if pyserial is importable. Give a clear error message if neither works.
15 KiB
15 KiB