Download pycairo




















Again, you'll want both cairo and pixman packages from that directory. The cairo library itself is maintained with the git version control system. You may browse the source online using the cgit interface. You may also use git to clone a local copy of the cairo library source code.

The following git commands are provided for your cut-and-paste convenience. Once you have a clone this way, you can browse it locally with graphical tools such as gitk or gitview. You may also commit changes locally with "git commit -a". These local commits will be automatically merged with upstream changes when you next "git pull", and you can also generate patches from them for submitting to the cairo mailing list with "git format-patch origin".

To compile the clone, you need to run. You may need some distribution-specific development packages to compile cairo. If your are using Debian or Ubuntu, you may find additional details for Debian-derived systems helpful. You can use Git on Windows either with msysgit or git inside Cygwin. Msysgit is the recommended way to go as the installation is much simpler and it provides a GUI. Project links Homepage. Statistics View statistics for this project via Libraries.

Maintainers lazka stuaxo. Project description Project details Release history Download files Project description. Project details Project links Homepage. Download files Download the file for your platform. Files for pycairo, version 1. Close Hashes for pycairo File type Source. Python version None.

Upload date Jun 3, I did see the similarity in the error message, but it sounded from your response that the problem was that it was Windows issue. I'm not clear what the issue and solution would be for Mac users. Any clarification would be appreciated. Ah, sorry, missed that. If you use macports I think installing the package pkgconfig should help. You can check that everything works by using pkg-config --modversion cairo , which should print out the cairo version.

The next pycairo release should have a better error message than what you got. See In case there's any interest, I found that it is relatively easy to build a manylinux wheel for pycairo. Thanks stuaxo. No probs, they really need to put a note on the sourceforge page to use that github repo! Yeah - that's what I thought! On mac, ensure the cairo package is installed brew install cairo before attempting to install via pip.

While installing pycairo as a dependency, I needed to run sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev before I could get pip install pycairo to run. It threw a Package cairo was not found in the pkg-config search path. This will be the case - on Linux and OSX pycairo gives you bindings to the installed version of the cairo library.

On Windows things are different, so we bring our our own version. The docs could probably be improved, by including an install section for different operating systems.

On mac it gets tricky as there can be homebrew or macports Hi, I do have another error here:. I guess what I'm saying is it appears the pycairo install issue on Mac is not necessarily dependent on environmental issues. Hello all, I wanted to install pycairo but I couldn't manage to, is there anyone who knows what this error message is about?

Notice that 'pkg-config' not found. However, having done this and used it for a few days, I'd probably recommend installing the full PyGTK suite as you mention. Being able to render your work to a window during dev, even if your ultimate target is rendering to file, is really helpful and speeds things up! Me too, much simpler way. Unless you have a reason not to install GTK this is what I'd recommend. Matt Matt 2 2 silver badges 8 8 bronze badges.

I was stuck for a while with conflicting DLLs installed with this method. The solution was stupidly simple There is another similar question in StackOverflow: PyCairo - installation on Windows The accepted answer is simple and practical.

Although the link it provided is outdated because the version is up now , the idea is great. I have tested this method and it works perfectly. Hansimov Hansimov 4 4 silver badges 9 9 bronze badges. Windows can just do pip install pycairo and they will have pycairo installed. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.



0コメント