2020腾讯云限时秒杀,爆款1核2G云服务器99元/年!(领取2860元代金券),
地址:https://cloud.tencent.com/act/cps/redirect?redirect=1062
While Googling 'pycairo install windows' does give the above link, it is presented below some rather unhelpful pages, and it's also not particularly obvious that igraph documentation will be applicable. Eventually I got as far as installing PyCairo (from the GNOME link in the question), without Cairo itself. To install PyCairo in your home directory you need to first install it's dependancies, Pixman and Cairo. To do that, you can use our Install Software From Source guide. I've managed to install it in a test user's home like that: Open an SSH session to the server. To install PyCairo in your home directory you need to first install it's dependancies, Pixman and Cairo. To do that, you can use our Install Software From Source guide. I've managed to install it in a test user's home like that: Open an SSH session to the server. If you don't know how this guide will help you. Download and uncompress the source.
2020阿里云最低价产品入口+领取代金券(老用户3折起),
入口地址:https://www.aliyun.com/minisite/goods
I spent hours this afternoon trying to find a straightforward tutorial for installing PyCairo on Windows.
The Cairo project itself does not maintain Windows binaries, they must be dowloaded elsehere (e.g. http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/).
The process is also complicated further apparently by the fact that MSVC is apparently not a supported compiler for PyCairo (although the source patch is simple). See this bug report:
Can anyone recommend a tutorial for installing PyCairo on Windows?
pythonwindowsinstallationcairopycairo|
this questionedited Jan 3 '12 at 9:33 asked Jan 2 '12 at 19:07 Claynoik 128 1 1 8 the hyperlink you give points to repositories with old pycairo versions. There are neither version for python 3.x. See my answer for updated installers for python 2.x and 3.x – joaquin Jan 2 '12 at 21:08 Thanks joaquin, that's perfect. I've removed my answer from the question, as planned. – Claynoik Jan 3 '12 at 9:34 |
5 Answers
5
---Accepted---Accepted---Accepted---You should try windows binary installers from Gohlke repository for pyCairo and py2Cairo.
I never used pyCairo myself but took 4 minutes to install and get my first png example file done.
|
this answeredited Jan 2 '12 at 21:10 answered Jan 2 '12 at 19:16 joaquin 38k 15 91 121 |
Adding the following for completeness - joaquin's answer above provides a simpler route (and Python 3 support).
Please see the following tutorial:
(also hosted at http://hal.elte.hu/~nepusz/development/igraph/tutorial/install.html).
I asked the question above, so that I could answer it myself. Hopefully people in a similar situation in future will find this post :)
Recommend:installation - How to install pymssql on windows with python 2.7
de.google.com/p/pymssql/issues/detailid=12 but i cannot figure out what to do with those files provided. python installation pymssql
|
this question edited Jun 23 '14 at 22:32 user3413108 asked Jan 12 '11 at 7:30 Cubius 442 1
While Googling 'pycairo install windows' does give the above link, it is presented below some rather unhelpful pages, and it's also not particularly obvious that igraph documentation will be applicable.
Eventually I got as far as installing PyCairo (from the GNOME link in the question), without Cairo itself. This gave me a DLL import error when I tried to use it. Fortunately, a question relating to this error exists on StackOverflow:
This question discusses the excellent tutorial from Tamas, linked above, which is all I needed to get up and running.
|
this answer answered Jan 3 '12 at 9:30 Claynoik 128 1 1 8 Already made this comment on another answer but in case it helps someone; I had conflicting DLLs and the solution was stupidly simple... had to move the GTK (ex: C:gtkbin) to the beginning of my environment variables. – Mike S Jul 17 '14 at 1:53 |
I believe I have installed a copy using the pygtk all-in-one installer and I believe it did Just Work (32b, python2, mind you). They also mention the gnome URL in your post.
|
this answer answered Jan 11 '12 at 14:51 XTL 680 1 6 23 1 Good to know. The question discusses installing just PyCairo. 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! – Claynoik Jan 12 '12 at 10:56 Me too, much simpler way. Unless you have a reason not to install GTK this is what I'd recommend. – Mene May 19 '15 at 16:44 |
A simple tutorial: http://digitalpbk.blogspot.com.au/2012/03/installing-pygtk-pypango-and-pycairo-on.html
only 4 steps and worked like a charm.
Pycairo Windows
|this answer answered Jan 25 '13 at 4:00 Matt 359 1 8 I was stuck for a while with conflicting DLLs installed with this method. The solution was stupidly simple... had to move the GTK (ex: C:gtkbin) to the beginning of my environment variables. – Mike S Jul 17 '14 at 1:51 But isn't insecure? – Sergei Apr 25 '16 at 13:44 |
install pygtk all in one http://www.pygtk.org/downloads.html It includes pygtk and all its dependencies, including pycairo
|
How To Install Pycairo
this answer answered Aug 10 '13 at 20:33 Alex V. 390 2 14 |How To Install Pycairo Install In Windows
Recommend:How do you install shapely for Python 2.7 on Windows
executable installer from http://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely but that gohlke web page only offers binaries for shapely for Python 3.5, none for 2.x. python windows pip shapely python-wheel share | improve this question edite
Recommend:How do you install shapely for Python 2.7 on Windows
executable installer from http://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely but that gohlke web page only offers binaries for shapely for Python 3.5, none for 2.x. python windows pip shapely python-wheel share | improve this question edite