How do I install Cairo binaries for Python

时间秒杀一切 提交于 2019-12-25 03:13:55

问题


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.


回答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 http://www.lfd.uci.edu, 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:\Pythonxx\Scripts (xx is the version of Python)
  4. Open a command window. Not the Python command window.
  5. Enter cd c:\Pythonxx\Scripts. 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


来源:https://stackoverflow.com/questions/28269230/how-do-i-install-cairo-binaries-for-python

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