https://blog.lemonhall.me/notesview/show/475 

先切到目录下面:

doubao-playwright/doubao

lemonhall@LEMON-HP-LAPTOP:~/doubao-playwright/doubao$ playwright codegen  https://www.doubao.com/chat/ --save-storage=auth.json
Command 'playwright' not found, but can be installed with:
sudo apt install node-playwright
lemonhall@LEMON-HP-LAPTOP:~/doubao-playwright/doubao$ ls -a
.  ..  auth.json  test_example.py
lemonhall@LEMON-HP-LAPTOP:~/doubao-playwright/doubao$

报错,哎,好吧

参考这一片:

 https://blog.lemonhall.me/notesview/show/474 

mkdir doubao-playwright
cd doubao-playwright/
python3 -m venv .venv
source .venv/bin/activate

重新装一下

 https://playwright.dev/python/docs/intro 

pip install pytest-playwright

然后

playwright install

缺东西了