系统提示OSError: Ghostscript is not installed,如何解决?

import camelot
import ghostscript

tables = camelot.read_pdf(r'C:\Users\Doris\Desktop\1.pdf',pages='2',flavor='lattice')

OSError: Ghostscript is not installed. You can install it using the instructions here: https://camelot-py.readthedocs.io/en/master/user/install-deps.html

我下载安装了ghostscript.exe,并且配置了环境变量
C:\Program Files (x86)\gs9.54.0\bin
C:\Program Files (x86)\gs9.54.0\lib
为什么还报错?求解。

img


确定cmd能打开gswin64后,注释掉红框中的判断

就是系统没有装好,没有系统的意思