Skip to content

Error: zsh: command not found: playwright

After pip install playwright on OS X, I get the following error when trying to run playwright install:

zsh: command not found: playwright

After trying a lot of things - installing dotnet, looking at my PATH, seeing whether it had something to do with npm - I finally found the solution: I needed to reinstall playwright.

pip uninstall playwright
pip install playwright
playwright install chromium

Why? I don't know! But it worked. It might have had something to do with changing my zsh profile, with my PATH, with the fact that it had been installed long ago and had become disconnected from this or that. But again: it worked!