Install GroupDocs.Comparison for Python via .NET

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Comparison MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-comparison -- dnx GroupDocs.Comparison.Mcp --yes
Folders, licensing and more →

GroupDocs.Comparison for Python via .NET ships as a self-contained Python wheel on PyPI. The wheel bundles the .NET runtime, so no separate .NET installation is required on Windows. On Linux and macOS, a small set of native dependencies is needed for graphics and font rendering.

Install from PyPI

The recommended way to install GroupDocs.Comparison is via pip:

pip install groupdocs-comparison-net

To install a specific version:

pip install groupdocs-comparison-net==26.4.0

Verify the installation:

pip show groupdocs-comparison-net

Install from a downloaded wheel

If you cannot install from PyPI (for example, in an offline environment), download the wheel for your platform from the GroupDocs releases page and install it locally.

Wheels are published for four target platforms:

PlatformWheel filename suffix
Windows x64-win_amd64.whl
Linux x64-manylinux*_x86_64.whl
macOS Intel-macosx_*_x86_64.whl
macOS Apple Silicon-macosx_*_arm64.whl

After downloading, install with pip:

pip install ./groupdocs_comparison_net-26.4.0-py3-none-win_amd64.whl

Expected output:

Processing ./groupdocs_comparison_net-26.4.0-py3-none-win_amd64.whl
Installing collected packages: groupdocs-comparison-net
Successfully installed groupdocs-comparison-net-26.4.0

Native dependencies (Linux and macOS)

On Windows the wheel is self-contained. On Linux and macOS, install the following before running any examples:

Ubuntu / Debian

sudo apt update
sudo apt install -y libgdiplus libfontconfig1 libicu-dev ttf-mscorefonts-installer fontconfig
sudo fc-cache -f

ttf-mscorefonts-installer accepts the EULA interactively; in CI pipelines, accept it non-interactively with echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections before the install.

macOS

brew install mono-libgdiplus

If GroupDocs.Comparison fails with DllNotFoundException: libSkiaSharp on macOS, the system has a stale copy that conflicts with the bundled version. Rename it so the bundled library takes precedence:

sudo mv /usr/local/lib/libSkiaSharp.dylib /usr/local/lib/libSkiaSharp.dylib.bak

Verify the installation

After installing, confirm that the package imports cleanly:

python -c "from groupdocs.comparison import Comparer; print('OK')"

If this prints OK, you are ready to compare your first document — head to the Quick start guide.