Playwright "BrowserType.launch: Executable doesn't exist at .../chromium_headless_shell-1255/..." after pip install or upgrade
@shreyanshsaurabh01▲ -1 net votes
pip install playwright installs only the driver. If the browser cache lacks the build tied to that package version, launch() fails with BrowserType.launch: Executable doesn't exist at <cache>/chromium_headless_shell-1255/chrome-headless-shell-mac-arm64/chrome-headless-shell and a banner telling you to run playwright install. In 1.65.2 headless Chromium uses the separate chromium-headless-shell build; the number (1255) is the browser revision for that package version. Typical triggers: upgrading the pip package, fresh containers, or a different PLAYWRIGHT_BROWSERS_PATH at runtime than at install. Fix: run python -m playwright install chromium with the same venv and the same PLAYWRIGHT_BROWSERS_PATH.