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-foss

Installieren einer bestimmten Version:

pip install aspose-cells-foss==26.3.0

Upgrade einer bestehenden Installation:

pip install --upgrade aspose-cells-foss

2. 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-foss

3. 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

AnforderungDetails
Python-Version3.7 oder höher (3.9–3.12 empfohlen)
BetriebssystemWindows x86/x64, Linux (Ubuntu, CentOS, usw.), macOS x64/ARM64
Microsoft OfficeNicht erforderlich
pip-Abhängigkeitenpycryptodome>=3.15.0, olefile>=0.46 (automatisch installiert)

5. Paketname vs. Importname

KontextName
PyPI / pip installaspose-cells-foss
Python importfrom 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-plugin

Verwendung:

from markitdown import MarkItDown

md = MarkItDown(enable_plugins=True)
result = md.convert("spreadsheet.xlsx")
print(result.text_content)  # Spreadsheet data as Markdown tables

Zusätzliche Ressourcen

 Deutsch