Computer Science/Python
[Python3] "[Errno 2] No such file or directory: 'gs'" 해결방법
yesbaby.
2022. 11. 19. 10:10
반응형
PIL(pillow) 패키지로 ps 확장자 파일을 여는 도중 에러가 발생
[Errno 2] No such file or directory: 'gs'
찾아보니 gs라는 파일은 ghostscript로 어도비나 PDF 계열의 파일을 호환하는 소프트웨어(WIKI)
바로 패키지 매니저로 처리!
yum install ghostscript
설치후 gs 명령어로 설치 확인
[ec2-user@ip-172-31-40-202 work]$ gs
GPL Ghostscript 9.25 (2018-09-13)
Copyright (C) 2018 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GPL Ghostscript 9.25: Cannot open X display `(null)'.
**** Unable to open the initial device, quitting.
반응형