Installation

Installation of Aspose.Cells FOSS for Python

Aspose.Cells FOSS for Python is distributed as a standard Python package on PyPI under the name aspose-cells-foss. The recommended installation method is pip, which handles all dependencies automatically.


1. pip (Recommended)

pip is the standard way to install Aspose.Cells FOSS for Python. No additional tools or build steps are required.

Install the latest version:

pip install aspose-cells-foss

Install a specific version:

pip install aspose-cells-foss==26.3.0

Upgrade an existing installation:

pip install --upgrade aspose-cells-foss

2. Virtual Environment (Recommended for Projects)

Using a virtual environment isolates your project dependencies from the system Python installation.

Create and activate a virtual environment:

##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. Verify the Installation

After installing, run the following snippet to confirm the library loads correctly:

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.")

If the file verify.xlsx is created without errors, the installation is complete.


4. System Requirements

RequirementDetails
Python version3.7 or later (3.9–3.13 recommended)
Operating systemWindows x86/x64, Linux (Ubuntu, CentOS, etc.), macOS x64/ARM64
Microsoft OfficeNot required
pip dependenciespycryptodome>=3.15.0, olefile>=0.46 (auto-installed)

5. Package Name vs. Import Name

ContextName
PyPI / pip installaspose-cells-foss
Python importfrom aspose.cells_foss import ...

The pip package name uses a hyphen (aspose-cells-foss) while the Python import uses dot notation (aspose.cells_foss). This follows the namespace package convention.


6. Plugin Installation

markitdown-aspose-cells-plugin

Extends Microsoft’s MarkItDown library with support for XLSX, XLS, and ODS formats:

pip install markitdown-aspose-cells-plugin

Usage:

from markitdown import MarkItDown

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

Additional Resources