我在导入cairosvg时遇到问题。即使我尝试使用它时安装确实能完美地工作,但在安装时还是出现此错误:
Requirement already satisfied: cairosvg in c:\users\thaoly\anaconda3\lib\site-packages (2.4.2)
Requirement already satisfied: defusedxml in c:\users\thaoly\anaconda3\lib\site-packages (from cairosvg) (0.6.0)
Requirement already satisfied: cairocffi in c:\users\thaoly\anaconda3\lib\site-packages (from cairosvg) (1.1.0)
Requirement already satisfied: tinycss2 in c:\users\thaoly\anaconda3\lib\site-packages (from cairosvg) (1.0.2)
Requirement already satisfied: pillow in c:\users\thaoly\anaconda3\lib\site-packages (from cairosvg) (7.2.0)
Requirement already satisfied: cssselect2 in c:\users\thaoly\anaconda3\lib\site-packages (from cairosvg) (0.3.0)
Requirement already satisfied: cffi>=1.1.0 in c:\users\thaoly\anaconda3\lib\site-packages (from cairocffi->cairosvg) (1.14.0)
Requirement already satisfied: setuptools>=39.2.0 in c:\users\thaoly\anaconda3\lib\site-packages (from cairocffi->cairosvg) (49.2.0.post20200714)
Requirement already satisfied: webencodings>=0.4 in c:\users\thaoly\anaconda3\lib\site-packages (from tinycss2->cairosvg) (0.5.1)
Requirement already satisfied: pycparser in c:\users\thaoly\anaconda3\lib\site-packages (from cffi>=1.1.0->cairocffi->cairosvg) (2.20)
但是在导入时
OSError: no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so': error 0x7e
cannot load library 'libcairo.2.dylib': error 0x7e
cannot load library 'libcairo-2.dll': error 0x7e