在Windows平台中将Ghostscript链接到pypdfocr [英] Linking Ghostscript to pypdfocr in Windows Platform
问题描述
通过pip安装安装了pypdfocr和ghostscript.但是,当在命令提示符下运行pypdfocr时:
Installed pypdfocr and ghostscript via pip installation. But, when the pypdfocr is run in the command prompt:
[env27] C:\Users\888537>pypdfocr Hotel.pdf
ERROR: Could not find Ghostscript in the usual place; please specify it using your config file
请求帮助以链接这些库需要做什么?
Requesting for help as to what needs to be done to link these libraries?
推荐答案
您可以通过其页面上给出的安装程序直接安装Ghostscript- https://ghostscript.com/download/gsdnld.html
You can install Ghostscript directly via installer given on their page - https://ghostscript.com/download/gsdnld.html
之后,您需要设置环境变量.
After that, you need to set environment variable.
添加新的系统变量:
变量:GS_PROG
值::gswin64c.exe文件位置的完整路径(在GhostScript安装目录中–默认位置为C:\ Program Files \ gs \ gs9.21 \ bin \ gswin64c. exe,但这取决于您安装的位置
Value: Full path to the location of your gswin64c.exe file (in your GhostScript installation directory – the default location is C:\Program Files\gs\gs9.21\bin\gswin64c.exe, but this may vary depending on where you installed it)
这篇关于在Windows平台中将Ghostscript链接到pypdfocr的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!