无法在本地安装wkhtmltopdf以与python一起使用-Windows 10(pdfkit)

问题描述 投票:1回答:1

我正在尝试将大量的URL转换为python中的.pdf文件。我遇到了pdfkit,看来这是解决我的问题的好方法。我没有使用anaconda提示来pip安装pdfkit,没有问题。

我现在正在尝试安装wkhtmltopdf.exe文件,当我从https://wkhtmltopdf.org/downloads.html下载文件时,它将开始下载。

当我单击以实际安装下载时,它开始运行并安装到路径C:\ Program Files \ wkhtmltopdf

几秒钟后,我收到一条错误消息,指出:

Error opening file for writing 
C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe
Click Abort to stop the installation,
Retry to try again, or
Ignore to skip this file

我在Windows 10计算机上。我尝试过在线查找,不知道尝试下载此文件可能有什么问题

编辑: McAfee由于正在安装更新而阻止了下载

python-3.x wkhtmltopdf failed-installation pdfkit
1个回答
0
投票

从官方站点https://wkhtmltopdf.org/downloads.html下载时选择正确的Windows版本(32位/ 64位)。>

也许您想考虑:

  1. 如果尝试在之前安装wkhtmltopdf,请清除注册表
  2. 选择其他路径/文件夹进行安装
  3. 关闭防病毒安装
© www.soinside.com 2019 - 2024. All rights reserved.