Getting “OSError: dlopen() failed to load a library: cairo / cairo-2” on Windows

后端 未结 3 1921
长情又很酷
长情又很酷 2021-01-12 05:45

I\'m getting OSError: dlopen() failed to load a library: cairo / cairo-2 when trying to execute Django after a new install. Using Windows.

I\'m using We

3条回答
  •  执念已碎
    2021-01-12 06:19

    See http://win32builder.gnome.org/ or http://gtk-win.sourceforge.net/home/ for a list of GTK+ bundles to install. These include the required cairo/cairo-2 libs.

    • Extract the contents of the bin\ folder to e.g. C:\Program Files (x86)\GTK2-bundle\ (any directory would do)
    • Add the above directory to your PATH environment variable
    • Restart your development environment (in my case PyCharm)

提交回复
热议问题