如何在Windows上安装PyCairo(Python的Cairo)? [英] How do you install PyCairo (Cairo for Python) on Windows?

查看:355
本文介绍了如何在Windows上安装PyCairo(Python的Cairo)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天下午我花了几个小时试图找到一个简单的教程,以在Windows上安装PyCairo.

I spent hours this afternoon trying to find a straightforward tutorial for installing PyCairo on Windows.

Cairo项目本身不维护Windows二进制文件,必须在其他位置下载它们(例如

The Cairo project itself does not maintain Windows binaries, they must be dowloaded elsehere (e.g. http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/).

显然,MSVC显然不受PyCairo支持(尽管源补丁很简单),这一事实也使该过程变得更加复杂.查看此错误报告:

The process is also complicated further apparently by the fact that MSVC is apparently not a supported compiler for PyCairo (although the source patch is simple). See this bug report:

https://www.libreoffice.org/bugzilla/show_bug.cgi? id = 22940

任何人都可以推荐在Windows上安装PyCairo的教程吗?

Can anyone recommend a tutorial for installing PyCairo on Windows?

推荐答案

您应该尝试从Gohlke存储库中为 py2Cairo .

You should try windows binary installers from Gohlke repository for pyCairo and py2Cairo.

我自己从未使用过pyCairo,但是花了4分钟来安装并完成了我的第一个png示例文件.

I never used pyCairo myself but took 4 minutes to install and get my first png example file done.

这篇关于如何在Windows上安装PyCairo(Python的Cairo)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆