首页 > 其他分享 >playwright:command not found: playwright 未找到命令

playwright:command not found: playwright 未找到命令

时间:2022-11-02 14:59:44浏览次数:104  
标签:playwright dev codegen command found python3

背景

看官文中的代码生成器:
playwright codegen playwright.dev
image

解决

打开终端执行:
python3 -m playwright codegen playwright.dev
image

其他知识

python3 -m作用:
image

-m能给我们的好处是:已知一个模块的名字,但不知道它的文件路径,那么使用“-m”就意味着交给解释器自行查找,在所有模块命名空间中查找,定位到脚本的路径,则当成脚本执行。

来源:https://www.yanxishe.com/columnDetail/18600

标签:playwright,dev,codegen,command,found,python3
From: https://www.cnblogs.com/tarzen213/p/16850988.html

相关文章