When using mac to install playwright, it prompts an error:
PermissionError: [Errno 1] Operation not permitted
It is found that the SIP (System Integrity Protection) system protection mechanism in Mac computers is enabled by default and has a rootless mechanism.
sudo pip install --user --upgrade playwright