安装Microsoft剧作家时出错

发布于 2025-02-11 06:13:31 字数 266 浏览 1 评论 0原文

我遇到了这个错误:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笙痞 2025-02-18 06:13:31

您需要添加到路径中的剧作家。

但是,做到这一点的更好方法(如果将Python添加到您的路径中)而不将其添加到路径中的方法是运行:

python -m playwright install

这将剧作家模块作为脚本运行。使用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:

python -m playwright install

This runs the playwright module as a script. Use python -h for more information on these flags, and python -m playwright for more information on the flags supported specifically by playwright

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文