Installation of PyCairo on Windows

前端 未结 3 730
余生分开走
余生分开走 2020-12-02 02:19

I see there is an old question about a similar thing here:

How do you install PyCairo (Cairo for Python) on Windows?

Since it\'s from 2012, I guess it\'s out

相关标签:
3条回答
  • 2020-12-02 02:22

    Pycairo now has Wheels. So simple

    pip install pycairo
    

    will work for Windows.

    0 讨论(0)
  • 2020-12-02 02:41

    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.

    0 讨论(0)
  • 2020-12-02 02:43

    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

    0 讨论(0)
提交回复
热议问题