Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- domain-adapted pre-training
- Text-to-Image
- sfttrainer
- error: mkl-service + intel(r)
- instruction tuning (it)
- continual pre-training
- Lora
- full fine-tuning (fft)
- instruction tuning
- lora+
- Mac
- instruct pre-training
- gemma2
- langchain
- ubuntu
- llm
- Fine-tuning
- transformer
- llm tuning
- continued pre-training
- instruct-pt
- continued pre-train (cpt)
- prompt
- glibcxx
- cross-document attention
- PEFT
- ViT
- backbone
- diffusion
- CPT
Archives
- Today
- Total
꾸준하게
[Mac] OSError: Ghostscript is not installed. 본문
아래 코드를 실행하니 위와 같은 오류가 발생하여 brew install ghostscript 명령어로 설치를 해주었다.
하지만 설치를 했음에도 같은 오류가 발생. Stackoverflow에서 해결방법을 얻게되어 글을 작성하였다.
https://stackoverflow.com/questions/75391805/need-to-install-ghostscript-to-mac-path
실행 명령어
from llama_index.readers.pdf_table import PDFTableReader
from pathlib import Path
reader = PDFTableReader()
pdf_path = Path(file_path)
documents = reader.load_data(file=pdf_path, pages="1-3")
해결 방법
# Create a "lib" folder in your user directory:
mkdir -p ~/lib
# Link Ghostscript to the "lib" folder:
ln -s "$(brew --prefix gs)/lib/libgs.dylib" ~/lib