[Solved] How do I install Cairo binaries for Python

I am trying to install Cairo for Python 2.7 in windows. I have installed igraph. There are binaries for this system on Christoph’s site. I have downloaded the appropriate binary. How do I use pip to install the Cairo binary.

Enquirer: Herb

||
Solution #1:

I worked on it and figured it out. Here are detailed instructions. They will work (with appropriate modifications for any binary Python package:

Installing Cairo in Python for Windows.

  1. Go to site https://www.lfd.uci.edu/~gohlke/pythonlibs/, Chrisoph Gohlke’s site
  2. Download the appropriate version of Cairo to your Download folder
  3. Move the downloaded file from the Download folder to c:PythonxxScripts (xx is the version of Python)
  4. Open a command window. Not the Python command window.
  5. Enter cd c:PythonxxScripts. The system will give you a command line in that directory
  6. Enter:
    pip install downloaded-file-name,
    for example pycairo-1.10.0-cp27-none-win32.whl
Respondent: Herb
The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Leave a Reply

Your email address will not be published.