ההתקנה
ההתקנה
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.
דרישות
| דרישות | פרטים |
|---|---|
| Python | 3.10 or later |
| OS | Windows, MacOS ו- Linux |
| תלויות | לא נקי (Python) |
התקנה של PyP
בצע את הפקודה הבאה כדי להתקין את הגירסה העדכנית ביותר:
asposefoss/tex is not yet published — build from source until it ships. See the project README for build instructions.כדי לפנק גרסה ספציפית:
asposefoss/tex is not yet published — build from source until it ships. See the project README for build instructions.בדוק את ההתקנה
אישור שהחבילה מותקנת כראוי:
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))