Python pdfkit 找不到 wkhtmltopdf 可执行文件

Python pdfkit can't find wkhtmltopdf executable

几个月前我创建了一个小脚本来将 URL 转换为 PDF 文件,今天早上我尝试转换另一个 link 但是我从 py 提示符中得到了这个错误:

File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\pdfkit\api.py", line 24, in from_url
configuration=configuration, cover_first=cover_first)
File "C:\Python27\lib\site-packages\pdfkit\pdfkit.py", line 42, in __init__
self.configuration = (Configuration() if configuration is None
File "C:\Python27\lib\site-packages\pdfkit\configuration.py", line 27, in __init__
'https://github.com/JazzCore/python-pdfkit/wiki/Installing-wkhtmltopdf' % self.wkhtmltopdf)
IOError: No wkhtmltopdf executable found: ""
If this file exists please check that this process can read it. Otherwise please install wkhtmltopdf - 
https://github.com/JazzCore/python-pdfkit/wiki/Installing-wkhtmltopdf

我在谷歌上搜索了很多,但仍然找不到解决方案。谁能帮帮我?

我找到了解决方案,但我不知道为什么 python 将我的环境路径 "C:\Program Files\wkhtmltopdf\bin" 替换为 "C:\Program Files\wkhtmltopdin" 因为“\b”所以我只是替换了“\ b" 与 "/b" 并解决。