Installation¶
Requirements¶
OS |
Arch |
Notes |
|---|---|---|
Linux |
x86_64, x86, aarch64, armv7, s390x, ppc64le |
manylinux and musllinux wheels |
Windows |
x64, x86, ARM64 |
Pre-built wheels on PyPI |
macOS |
x86_64, ARM64 |
Universal-compatible wheels |
Android |
aarch64, x86_64 |
Built via CI |
Important
Python 3.10 through 3.14 is supported. Python 3.9 wheels are no longer built – upgrade your interpreter or install from source.
Install¶
python -m pip install resvg_py
That’s it. No system libraries, no build step – just a pre-compiled wheel.
uv pip install resvg_py
Or add as a project dependency:
uv add resvg_py
poetry add resvg_py
Or install in a virtual environment without adding to pyproject.toml:
poetry run pip install resvg_py
pdm add resvg_py
pipenv install resvg_py
conda install -c conda-forge resvg_py
Note
Conda-forge packages may lag behind the latest PyPI release by a few days. Use pip inside a conda env for the newest version:
conda create -n myenv python=3.12
conda activate myenv
pip install resvg_py
pipx install resvg_py
Warning
pipx is for CLI applications. resvg_py is a library – use pip,
uv, or Poetry instead.
Tip
Pin a version in production regardless of your package manager:
pip install "resvg_py>=0.3,<1.0"
uv pip install "resvg_py>=0.3,<1.0"
poetry add "resvg_py>=0.3,<1.0"
Verify installation¶
>>> import resvg_py
>>> resvg_py.__version__
'0.3.2'
>>> resvg_py.__resvg_version__
'0.47.0'
Install from source¶
If no wheel is available for your platform, build from source with maturin:
git clone https://github.com/baseplate-admin/resvg-py.git
cd resvg-py
maturin develop
pip install git+https://github.com/baseplate-admin/resvg-py.git
uv pip install git+https://github.com/baseplate-admin/resvg-py.git