Install and verify the environment
First separate the system libvips library from the language binding. pyvips and govips commonly require a discoverable system libvips. A prebuilt sharp package may bring a compatible libvips, depending on the platform and installation method.
Install libvips
Section titled “Install libvips”Ubuntu and Debian systems commonly use the development package:
sudo apt-get updatesudo apt-get install libvips-devOn macOS with Homebrew:
brew install vipsCheck the CLI before adding a binding:
vips --versionvips list classes | headInstall a binding
Section titled “Install a binding”Go / govips
Section titled “Go / govips”go mod init example.com/vips-checkgo get github.com/davidbyttow/govips/v2/vipsgovips uses CGO. If compilation cannot find headers or shared libraries, check pkg-config --modversion vips, the system development package, and the library search path.
Node.js / sharp
Section titled “Node.js / sharp”pnpm add sharpnode -e "import('sharp').then(({default:s}) => console.log(s.versions))"Python / pyvips
Section titled “Python / pyvips”python -m pip install pyvipspython -c "import pyvips; print(pyvips.version(0), pyvips.version(1), pyvips.version(2))"