我有一个问题在节点安装canvas模块安装。它似乎是与开罗的东西我得到这个错误… npm http GET https://registry.npmjs.org/canvas npm http 304 https://registry.npmjs.org/canvas npm http GET https://registry.npmjs.org/nan npm http 304 https://registry.npmjs.org/nan > canvas@1.1.3 install /Users/plimb/Desktop/motion-therapy/node_modules/canvas > node-gyp rebuild Package cairo was not found in the pkg-config search path. Perhaps you should add the directory containing `cairo.pc' to the PKG_CONFIG_PATH environment variable No package 'cairo' found gyp: Call to './util/has_cairo_freetype.sh' […]
如何在Python中将svg转换为png ? 我将svg存储在一个StringIO的实例中。 我应该使用pyCairo库吗? 我如何编写代码?