安装Microsoft剧作家时出错
我遇到了这个错误:
At line:1 char:1
+ playwright install
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (playwright:String) [],CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
我正在使用pip安装它,用于python
I'm getting this error:
At line:1 char:1
+ playwright install
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (playwright:String) [],CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I'm installing it using pip, for use in python
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要添加到路径中的剧作家。
但是,做到这一点的更好方法(如果将Python添加到您的路径中)而不将其添加到路径中的方法是运行:
这将剧作家模块作为脚本运行。使用
Python -H
有关这些标志的更多信息,以及Python -M playwright
有关Playwright专门支持的标志的更多信息You need playwright added to your PATH.
However, a better way to do this (if python is added to your path) without adding it to your PATH is by running:
This runs the playwright module as a script. Use
python -h
for more information on these flags, andpython -m playwright
for more information on the flags supported specifically by playwright