설치
설치
Aspose.TeX FOSS for Python is distributed as a pure Python package on PyPI. It has no native extensions, no LaTeX installation requirement, and no Perl runtime dependency. Install it using the pip package manager on Windows, macOS, or Linux. The package works with Python 3.10 and later and is compatible with virtual environments and container-based deployments.
Prerequisites
| Requirement | Detail |
|---|---|
| Python | 3.10 or later |
| OS | 윈도우, 맥OS, 리눅스 |
| Dependencies | None (정도의 파이썬) |
PyPI에서 설치
최신 버전을 설치하려면 다음 명령을 실행합니다:
pip install aspose-tex>=26.5특정 버전을 고정하려면:
pip install aspose-tex==26.5설치 확인
패키지가 올바르게 설치되었는지 확인합니다.:
import aspose_tex
print(aspose_tex.__version__)빠른 연기가 검증 되 는 경우
from aspose_tex import TeXJob, TeXOptions, PdfDevice, StringInputSource
pdf = TeXJob(StringInputSource("Hello!"), PdfDevice(), options=TeXOptions()).run()
print("OK, PDF bytes:", len(pdf))