PyCairo - installation on Windows

最后都变了- 提交于 2019-11-29 15:36:34

You are trying to install pycairo from source on Windows, which requires a Windows C compiler.

You can try the Unofficial Windows Binaries for Python Extension Packages web site. You can find the last version of pycairo (1.15.4) for Python 3.6. It is distributed as a wheel package so you should install it with no pain.

This web site is a well known alternative for Windows developers.

To install, try:

pip install https://download.lfd.uci.edu/pythonlibs/gjr6o2id/pycairo-1.15.4-cp36-cp36m-win_amd64.whl

Or download the wheel, and install as follow:

pip install pycairo-1.15.4-cp36-cp36m-win_amd64.whl

If you really want to install from source, you can follow the guide on the Python Wiki. There is a stand alone Microsoft Visual C++ 14.0.

This worked for me : https://github.com/Automattic/node-canvas/wiki/Installation%3A-Windows Make sure to unzip cairo library in C:\GTK for your exact x86 or x64 architecture

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!