brew install cairo libffi
pip install CairoSVG
- Download the latest GTK3 installer
- Install VC++ runtime
- Run
pip install cairosvg
install the cairo, python3-dev and libffi-dev packages (names may vary for your distribution)
See details here
- on Windows, you’ll have to install Visual C++ compiler for Python and Cairo;
- on macOS, you’ll have to install cairo and libffi (with Homebrew for example);
- on Linux, you’ll have to install the cairo, python3-dev and libffi-dev packages (names may vary for your distribution).