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
| Requirement | Detail |
|---|---|
| Python | 3.10 or later |
| Pip | 22.0 or later (bundled with Python 3.10+) |
| Hệ điều hành | Windows, Linux hoặc macOS |
| Runtime bên ngoài | Khô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:
asposefoss/page is not yet published — build from source until it ships. See the project README for build instructions.Để 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.0Kiể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")