在Windows平台中将Ghostscript链接到pypdfocr

在Windows平台中将Ghostscript链接到pypdfocr,windows,python-2.7,linker,ocr,anaconda,Windows,Python 2.7,Linker,Ocr,Anaconda,通过pip安装安装pypdfocr和ghostscript。但是,在命令提示符下运行pypdfocr时: [env27] C:\Users\888537>pypdfocr Hotel.pdf ERROR: Could not find Ghostscript in the usual place; please specify it using your config file 请求帮助了解链接这些库需要执行哪些操作?您可以通过Ghostscript页面上的安装程序直接安装Ghostsc

通过pip安装安装pypdfocr和ghostscript。但是,在命令提示符下运行pypdfocr时:

[env27] C:\Users\888537>pypdfocr Hotel.pdf
ERROR: Could not find Ghostscript in the usual place; please specify it using your config file

请求帮助了解链接这些库需要执行哪些操作?

您可以通过Ghostscript页面上的安装程序直接安装Ghostscript-

之后,您需要设置环境变量

添加新的系统变量:

变量:GS\U程序

值:gswin64c.exe文件位置的完整路径(在GhostScript安装目录中–默认位置为C:\Program Files\gs\gs9.21\bin\gswin64c.exe,但这可能因安装位置而异)