I’m on Windows (Windows 11)
I installed cairosvg
using pip
:
pip install cairosvg
But when I import it I have this error:
OSError: no library called "cairo-2" was found
no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so.2': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.so.2'
cannot load library 'libcairo.2.dylib': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.2.dylib'
cannot load library 'libcairo-2.dll': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo-2.dll'
I tried many fixes, including installing GTK+ Runtime:
OSError: no library called "cairo-2" was found
no library called "cairo" was found
cannot load library 'C:GTK+ Runtimebinlibcairo-2.dll': error 0xc1
cannot load library 'libcairo.so.2': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.so.2'
cannot load library 'libcairo.2.dylib': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.2.dylib'
cannot load library 'C:GTK+ Runtimebinlibcairo-2.dll': error 0xc1
But there’s still errors.
I hope you can help me.