在Windows平台中将Ghostscript链接到pypdfocr [英] Linking Ghostscript to pypdfocr in Windows Platform

查看:122
本文介绍了在Windows平台中将Ghostscript链接到pypdfocr的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆