cairosvg command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cairosvg: command not found
or when using sudo you get the following error message
sudo: cairosvg: command not found
Solutions to cairosvg: command not found
How To Fix cairosvg: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cairosvg is provided by cairosvg package.
cairosvg is:
CairoSVG is a SVG converter based on Cairo. It can export SVG files to PDF, PostScript and PNG files. The main part of CairoSVG is a SVG parser, trying to follow the SVG 1.1 recommendation from the W3C. Once parsed, the result is drawn to a Cairo surface that can be exported to various formats: PDF, PostScript, PNG and even SVG.
To fix this problem, we can install more using the command below.
sudo apt-get -y install cairosvg
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cairosvg.
sudo apt -y install cairosvg
Or if you have aptitude installed you can use the following command.
sudo aptitude install cairosvg
Summary
In this tutorial we learn how to fix cairosvg command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.