Installation
Installation von Aspose.Cells FOSS für Python
Aspose.Cells FOSS für Python wird als Standard‑Python‑Paket auf PyPI unter dem Namen aspose-cells-foss verteilt. Die empfohlene Installationsmethode ist pip, die alle Abhängigkeiten automatisch behandelt.
1. pip (Empfohlen)
pip ist der Standardweg, um Aspose.Cells FOSS für Python zu installieren. Es werden keine zusätzlichen Werkzeuge oder Build‑Schritte benötigt.
Installieren Sie die neueste Version:
pip install aspose-cells-fossInstallieren einer bestimmten Version:
pip install aspose-cells-foss==26.3.0Upgrade einer bestehenden Installation:
pip install --upgrade aspose-cells-foss2. Virtuelle Umgebung (Empfohlen für Projekte)
Durch die Verwendung einer virtuellen Umgebung werden die Projektabhängigkeiten von der System‑Python‑Installation isoliert.
Erstelle und aktiviere eine virtuelle Umgebung:
##Create
python -m venv .venv
##Activate on Linux/macOS
source .venv/bin/activate
##Activate on Windows
.venv\Scripts\activate
##Install
pip install aspose-cells-foss3. Installation überprüfen
Nach der Installation führen Sie das folgende Snippet aus, um zu bestätigen, dass die Bibliothek korrekt geladen wird:
from aspose.cells_foss import Workbook, Cell
workbook = Workbook()
workbook.worksheets[0].cells["A1"].value = "Installation verified!"
workbook.save("verify.xlsx")
print("Aspose.Cells FOSS for Python is installed correctly.")Wenn die Datei verify.xlsx ohne Fehler erstellt wird, ist die Installation abgeschlossen.
4. Systemanforderungen
| Anforderung | Details |
|---|---|
| Python-Version | 3.7 oder höher (3.9–3.12 empfohlen) |
| Betriebssystem | Windows x86/x64, Linux (Ubuntu, CentOS, usw.), macOS x64/ARM64 |
| Microsoft Office | Nicht erforderlich |
| pip-Abhängigkeiten | pycryptodome>=3.15.0, olefile>=0.46 (automatisch installiert) |
5. Paketname vs. Importname
| Kontext | Name |
|---|---|
| PyPI / pip install | aspose-cells-foss |
| Python import | from aspose.cells_foss import ... |
Der pip-Paketname verwendet einen Bindestrich (aspose-cells-foss), während der Python-Import die Punktnotation verwendet (aspose.cells_foss). Dies folgt der Namespace-Paketkonvention.
6. Plugin-Installation
markitdown-aspose-cells-plugin
Erweitert Microsofts MarkItDown-Bibliothek um Unterstützung für das XLSX‑Format:
pip install markitdown-aspose-cells-pluginVerwendung:
from markitdown import MarkItDown
md = MarkItDown(enable_plugins=True)
result = md.convert("spreadsheet.xlsx")
print(result.text_content) # Spreadsheet data as Markdown tablesZusätzliche Ressourcen
- Aspose.Cells FOSS für Python: PyPI
- GitHub-Repository
- Aspose.Cells FOSS für Python: Entwicklerhandbuch
- Aspose.Cells FOSS für Python: API-Referenz
- Wissensdatenbank: Aufgabenorientierte Anleitungen
- Produktübersicht: Zusammenfassung von Funktionen und Fähigkeiten
- Blog: Einführung in Aspose.Cells FOSS: Bibliotheksübersicht und Schnellstart
- Kostenloses Support-Forum