Install GroupDocs.Redaction for Python via .NET
Leave feedback
On this page
GroupDocs.Redaction for Python via .NET is distributed as pre-built wheels on PyPI. PyPI hosts a wheel for each supported platform, and pip picks the right one. Each wheel is self-contained: it bundles the .NET runtime and every managed dependency, so no Microsoft Office, OpenOffice, Adobe Acrobat or separate .NET install is required. pip also installs groupdocs-shared-net, a small package that holds the groupdocs.pydrawing and groupdocs.pycore modules every GroupDocs product shares.
Before installing, confirm your environment matches the supported platforms and Python versions listed in the System Requirements topic. Installing needs pip 20.3 or later.
Install Package from PyPI
Open a terminal and run the install command for your platform:
py-mpipinstallgroupdocs-redaction-net
python3 -m pip install groupdocs-redaction-net
python3 -m pip install groupdocs-redaction-net
After running the command you should see output similar to:
The wheel’s file name ends with the platform it is built for: win_amd64 on 64-bit Windows, manylinux_2_27_x86_64 on Linux x64 with glibc 2.27 or later, macosx_12_0_x86_64 on Intel Macs and macosx_12_0_arm64 on Apple Silicon, both with macOS 12 or later.
Add the Package to requirements.txt
For reproducible environments, pin the package version in your requirements.txt:
groupdocs-redaction-net==26.11.0
Then install all dependencies in one step:
pip install -r requirements.txt
Install from Downloaded Wheels
If your build environment cannot reach PyPI, download the wheel for your platform from the GroupDocs Releases website, and groupdocs_shared_net-26.11.0-py3-none-any.whl from PyPI (or with pip download groupdocs-shared-net==26.11.0 on a machine that can reach it). Wheels are published for four platforms:
Windows 64-bit: file name ends with win_amd64.whl
Linux x64 (glibc 2.27+): file name ends with manylinux_2_27_x86_64.whl
macOS Intel (12+): file name ends with macosx_12_0_x86_64.whl
macOS Apple Silicon (12+): file name ends with macosx_12_0_arm64.whl
Put both wheels in one folder, then install from it, with no index:
Installing the product wheel alone, without groupdocs_shared_net, makes pip look for it on PyPI.
Platform Prerequisites
Windows and macOS need nothing else. On Linux (Debian and Ubuntu shown), install ICU, which the .NET runtime needs to start, and fontconfig, which the presentation engine links (without it no PowerPoint or OpenDocument presentation opens):
sudo apt-get install libicu-dev libfontconfig1
For faithful rasterized output, also install the fonts your documents use, for example ttf-mscorefonts-installer for documents made with Microsoft Office. Without any font, text still renders, in a font the engine embeds. libgdiplus is not needed on any platform.
Verify the Installation
Confirm the package imports and check the installed version:
python -c "import groupdocs.redaction; print('GroupDocs.Redaction is ready')"
You can also list the installed packages with pip show groupdocs-redaction-net groupdocs-shared-net to confirm the versions and location.
Next Steps
Follow the Hello, World! guide to run your first redaction.