Installation

Installation von Aspose.Cells FOSS für Python

Aspose.Cells FOSS für Python wird als Standard-Python-Kopf auf PyPI unter dem Namen verteilt. aspose-cells-foss.Die empfohlene Installationsmethode ist pip, die alle Abhängigkeiten automatisch verwalten.


1 PIP (Rekommendiert)

Pip ist die Standard-Wege, um Aspose.Cells FOSS für Python zu installieren. Keine zusätzlichen Tools oder Bauchsteg sind erforderlich.

****Installieren Sie die neueste Version::

pip install aspose-cells-foss

*** Einfach eine bestimmte Version installieren::

pip install aspose-cells-foss

*** Aktualisieren Sie eine vorhandene Installation::

pip install --upgrade aspose-cells-foss

2. Virtual Environment (für Projekte empfohlen)

Mit einer virtuellen Umgebung isoliert Ihr Projekt abhängig von der System-Python-Installation.

*** Erstellen und aktivieren Sie 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>=26.3.1

3. Überprüfen Sie die Installation

Nach der Installation, führen Sie die folgenden Snippet zu bestätigen, dass die Bibliothek laden korrekt:

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 ist ohne Fehler erstellt, die Installation ist vollständig.


4. Systemanforderungen

RequirementDetails
Python Version3.7 oder später (3.9 bis 3.12 empfohlen)
BetriebssystemWindows x86/x64, Linux (Ubuntu, CentOS usw.), macOS x64/ARM64
Microsoft Officenicht erforderlich
Pip Abhängigkeitpycryptodome>=3.15.0, olefile>=0.46 (auch selbst installiert)

5. Paket Name vs. Import Name

ContextName
PIP / Pip Installationaspose-cells-foss
Python Einfuhrfrom aspose.cells_foss import ...

Der Name der Pip-Package verwendet eine Hyphen (aspose-cells-fossBei der Einführung von Python wird die Notation (aspose.cells_fossDies folgt dem Namespace-Paketkonvention.


6. Plugin Installation

Markitdown-Aspon-Zellen-Plugin

Erweiterung von Microsoft MarkItDown Bibliothek mit Unterstützung für XLSX-Format:

pip install aspose-cells-foss

Gebrauch :

from markitdown import MarkItDown  # MarkItDown is a third-party library by Microsoft

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

Zusätzliche Ressourcen

Siehe auch

 Deutsch