NBConvert失败:未安装Pyppeteer来支持Web PDF转换。请安装`nbconvert [webpdf]`启用

发布于 2025-02-12 10:41:17 字数 124 浏览 1 评论 0原文

获取错误为“ nbconvert失败:未安装pyppeteer来支持Web PDF转换。请安装nbconvert [webpdf]启用。”在尝试下载jupyter笔记本文件(.ipynb)作为pdf文件时

Getting error as "nbconvert failed: Pyppeteer is not installed to support Web PDF conversion. Please install nbconvert[webpdf] to enable." while trying to download jupyter notebook file (.ipynb) as a PDF file

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(5

梦里的微风 2025-02-19 10:41:17

使用命令提示符执行并安装以下软件包:

PIP安装NBConvert

Pip pip install pyppeteer

Execute and install below packages using command prompt:

pip install nbconvert

pip install pyppeteer

〃温暖了心ぐ 2025-02-19 10:41:17

它工作了,下面是完整命令:

#要下载ipynb到pdf到本地计算机

  1. pip install nbconvert
  2. pip install pyppeteer
  3. jupyter nbconvert-to webpdf -webpdf -allow -Chromium-download untitled.ipynb

It worked, below is full command :

#To Download the ipynb to PDF into local machine

  1. pip install nbconvert
  2. pip install pyppeteer
  3. jupyter nbconvert --to webpdf --allow-chromium-download untitled.ipynb
倒带 2025-02-19 10:41:17

在命令提示符中执行以下命令,以安装NBConvert和Puppeteer。

PIP安装NBConvert
pip install pyppeteer

如果收到错误

nbConvert失败:在系统上找不到合适的铬可执行文件。请使用' - 下载' - 允许下载一个。

然后尝试 [以下链接]

Execute the following commands in the command prompt to install nbconvert and puppeteer.

pip install nbconvert
pip install pyppeteer

If you get the error

nbconvert failed: No suitable chromium executable found on the system. Please use '--allow-chromium-download' to allow downloading one.

then try [Following link]

月隐月明月朦胧 2025-02-19 10:41:17

如果您使用的是Anaconda并在环境中安装了多个Python,请尝试从Anaconda接口安装它。

  1. 转到Anaconda Navigator ->环境,
  2. 更改安装程序以未安装
  3. 搜索nbconvert
  4. 检查并命中“应用
  5. 重新启动jupyter笔记本”。

anaconda屏幕截图

If you are using anaconda and have multiple python installed in your environment try to install it from anaconda interface.

  1. Go to Anaconda navigator -> environments,
  2. Change installer to Not installed
  3. Search nbconvert
  4. Check it and hit apply
  5. Restart your jupyter notebook.

anaconda screen shot

财迷小姐 2025-02-19 10:41:17

我也有类似的问题,尽管我的错误消息已读:RuntimeError:未安装剧作作者以支持Web PDF转换。请安装nbconvert [webpdf]启用。

在我的情况下,我试图通过conda安装nbconvert [webpdf],但继续接收此错误消息。我的WebPDF导出终于成功了,而当我运行pip install nbconvert [webpdf]。 (简单地运行pip install nbconvert没有为我解决问题。)

I had a similar issue, though my error message read: RuntimeError: Playwright is not installed to support Web PDF conversion. Please install nbconvert[webpdf] to enable.

In my case, I had tried to install nbconvert[webpdf] via conda but continued to receive this error message. My webpdf export finally succeeded when I instead ran pip install nbconvert[webpdf]. (Simply running pip install nbconvert didn't resolve the issue for me.)

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