0

我已经使用pip install gohstscript在 python 中安装了 ghost 脚本包。

安装成功,我可以看到pip list下的包

现在我想执行ghostscript命令,它给出的错误如下

C:\Users\Praveen>gs
'gs' is not recognized as an internal or external command,
operable program or batch file.

并且安装路径是

C:\Users\Praveen>python -m pip install ghostscript
Requirement already satisfied: ghostscript in c:\users\Praveen\appdata\local\programs\python\python310\lib\site-packages (0.7)
Requirement already satisfied: setuptools>=38.6.0 in c:\users\Praveen\appdata\local\programs\python\python310\lib\site-packages (from ghostscript) (57.4.0)
C:\Users\Praveen>python -m pip list
Package     Version
----------- -------
cobble      0.1.3
ghostscript 0.7
mammoth     1.4.18
pip         21.3.1
setuptools  57.4.0
wheel       0.37.0

所以现在我需要在环境变量中添加哪个路径或如何执行 gs 命令

4

0 回答 0