diff --git a/aider/scrape.py b/aider/scrape.py index 1e7899af7..7d3bed945 100755 --- a/aider/scrape.py +++ b/aider/scrape.py @@ -33,7 +33,8 @@ def install_playwright(io): return True pip_cmd = utils.get_pip_install(["aider-chat[playwright]"]) - chromium_cmd = "playwright install --with-deps chromium".split() + chromium_cmd = "-m playwright install --with-deps chromium" + chromium_cmd = [sys.executable] + chromium_cmd.split() cmds = "" if not has_pip: