Installation

Installation

Trang này giải thích cách cài đặt Aspose.Page FOSS cho Python trong môi trường phát triển của bạn.


Prerequisites

RequirementDetail
Python3.10 or later
Pip22.0 or later (bundled with Python 3.10+)
Hệ điều hànhWindows, Linux hoặc macOS
Runtime bên ngoàiKhông có Ghostscript hoặc Adobe cần thiết

Cài đặt với pip

Thực hiện lệnh sau để cài đặt thư viện từ PyPI:

pip install aspose-page-foss>=0.1.0

Để cài đặt trong một môi trường ảo (được khuyến cáo):

python -m venv .venv
source .venv/bin/activate   # Linux/macOS
.venv\Scripts\activate     # Windows
pip install aspose-page-foss>=0.1.0

Kiểm tra cài đặt

Nhập thư viện và kiểm tra rằng nó tải mà không có lỗi:

from aspose.page.ps.document import PsDocument
from aspose.page.xps.document import XpsDocument
print("Aspose.Page FOSS installed successfully")

Bước tiếp theo

See Also

 Tiếng Việt