Install pycairo in virtualenv

后端 未结 6 1394
梦毁少年i
梦毁少年i 2020-12-13 09:44

I\'ve tried to install pycairo in a virtualenv to use in a Django project. I\'ve ran the pip install pycairo==1.10.0 command which finds the packag

6条回答
  •  轮回少年
    2020-12-13 10:12

    Good news, everyone!

    I just released cairocffi: http://packages.python.org/cairocffi/

    It’s a replacement for pycairo that installs with pip in a virtualenv, runs on Python 2 and 3, as well as PyPy.

    pip install cairocffi
    

    In your code:

    import cairocffi as cairo
    # Enjoy the same API as Pycairo.
    

    Feedback welcome. (Although the issue tracker might be a better channel than here.)

提交回复
热议问题