Instal·lació
Instal·lació
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.
Condicions previes
| Requisits | Detall |
|---|---|
| Python | 3.10 or later |
| OS | Windows, macOS i Linux. |
| Dependències | Cap (pure Python) |
Instal·lar des de PyPI
Exercir el següent comandament per instal·lar la versió més recent:
pip install aspose-tex>=26.5Per fixar una versió específica:
pip install aspose-tex==26.5Verificar la instal·lació
Confirmar que el paquet s’ha instal·lat correctament:
import aspose_tex
print(aspose_tex.__version__)Testa ràpida de fum
from aspose_tex import TeXJob, TeXOptions, PdfDevice, StringInputSource
pdf = TeXJob(StringInputSource("Hello!"), PdfDevice(), options=TeXOptions()).run()
print("OK, PDF bytes:", len(pdf))