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-foss2. 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.13. Ü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
| Requirement | Details |
|---|---|
| Python Version | 3.7 oder später (3.9 bis 3.12 empfohlen) |
| Betriebssystem | Windows x86/x64, Linux (Ubuntu, CentOS usw.), macOS x64/ARM64 |
| Microsoft Office | nicht erforderlich |
| Pip Abhängigkeit | pycryptodome>=3.15.0, olefile>=0.46 (auch selbst installiert) |
5. Paket Name vs. Import Name
| Context | Name |
|---|---|
| PIP / Pip Installation | aspose-cells-foss |
| Python Einfuhr | from 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-fossGebrauch :
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 tablesZusätzliche Ressourcen
- Aspose.Cells FOSS für Python: PyPI
- GitHub Repository
- Aspose.Cells FOSS für Python: Entwickler Guide
- Aspose.Cells FOSS für Python: API Referenz
- Wissensbasis: Aufgabenorientierter How-to Guides
- Produktüberblick: Eigenschaften und Kapazitäten Zusammenfassung
- Blog: Einführung Aspose.Cells FOSS:Bibliothek Überblick und schneller Start
- Freie Unterstützung Forum