如何解决在 Windows 10 上导入 Ghostscript
我正在尝试将 ghostscript
导入 Python
当我输入 import ghostscript
时,我收到以下错误消息:
回溯(最近一次调用最后一次):文件“
我使用的是 Windows 10。
我已确认我使用的是 Python 3.8.3,32 位。
我找到了这个帖子:Importing Ghostscript in Python on Windows 8,但它不是很有帮助。
有什么建议吗?
我不确定如何确定我使用的是 32 位还是 64 位的 ghostscript 版本。
编辑 #1:
我通过执行 python -m pip install ghostscript
解决方法
根据the documentation,ghostscript
PyPi 包需要现有的 Ghostscript 安装:
python-ghostscript 需要
- Python 2.7 或更高版本(使用 Python 2.7、3.4、3.6 和 3.6 测试)
- 安装工具(见下文)
- Ghostscript 8.x 或更高版本(使用 9.x 测试)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。