当我运行 Django 服务器时,我看到这个问题!!
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 0x
cannot load library 'libcairo-2.dll': error 0x7e
最佳答案
安装 GTK+ 对我来说不起作用。 我使用 UniConverter2.0 解决了这个问题。 我的环境是
- Python 3.7
- Windows 10 x64
- 安装uniconvertor-2.0rc4-win64_headless.msi ,
- 找到UniConverter安装路径下的“dll”子目录。(在我的例子中,
C:\Program Files\UniConvertor-2.0rc4\dlls
) - 将此“dll”路径添加到系统路径。
- 关闭 VSCode 并重新打开项目。
- 尝试再次运行服务器。 享受吧!
关于python - django操作系统错误: no library called "cairo" was found on windows,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59481394/