NBConvert失败:未安装Pyppeteer来支持Web PDF转换。请安装`nbconvert [webpdf]`启用
获取错误为“ 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
使用命令提示符执行并安装以下软件包:
PIP安装NBConvert
Pip pip install pyppeteer
Execute and install below packages using command prompt:
pip install nbconvert
pip install pyppeteer
它工作了,下面是完整命令:
#要下载ipynb到pdf到本地计算机
pip install nbconvert
pip install pyppeteer
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
pip install nbconvert
pip install pyppeteer
jupyter nbconvert --to webpdf --allow-chromium-download untitled.ipynb
在命令提示符中执行以下命令,以安装NBConvert和Puppeteer。
PIP安装NBConvert
pip install pyppeteer
如果收到错误
然后尝试 [以下链接]
Execute the following commands in the command prompt to install nbconvert and puppeteer.
pip install nbconvert
pip install pyppeteer
If you get the error
then try [Following link]
如果您使用的是Anaconda并在环境中安装了多个Python,请尝试从Anaconda接口安装它。
anaconda屏幕截图
If you are using anaconda and have multiple python installed in your environment try to install it from anaconda interface.
anaconda screen shot
我也有类似的问题,尽管我的错误消息已读:
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 runningpip install nbconvert
didn't resolve the issue for me.)