Help installing CGAL bindings

469 views
Skip to first unread message

DrBwts

unread,
Feb 22, 2014, 8:09:39 AM2/22/14
to spyd...@googlegroups.com
Hi,

I have downloaded CGAL bindings for python. In the read me doc it says all I need to do is add the path to the CGAL folder to the PYTHONPATH environment variable.

BUT when I look at the environment variables PYTHONPATH isnt there?

I'm using Windows 7, Python (x,y) with Python 2.7.3.1 & Spyder - light

Can anyone point me in the right direction?

Thanks

Nic

DrBwts

unread,
Feb 23, 2014, 6:57:10 AM2/23/14
to spyd...@googlegroups.com
OK found PYHONPATH it was because I was using Spyder lite that I couldnt find it.

BUT I can get the bindings to work. I have a test pogram whic includes the following imports,

from CGAL.Kernel import*

from CGAL.Triangulations_2 import*

from random import*


I keep getting the error,

from CGAL.Kernel import*
ImportError: No module named CGAL.Kernel

Am I calling the module correctly?

Thanks

Nic

Carlos Córdoba

unread,
Feb 23, 2014, 8:40:38 AM2/23/14
to spyd...@googlegroups.com
Hi,

There are pre-built windows binaries for CGAL available here

http://www.lfd.uci.edu/~gohlke/pythonlibs/#cgal-python

You shouldn't have any trouble installing them in Python(x,y).

By the way, if you need other hard-to-build libraries or bindings,
please look for them at Gohlke's page. It's the biggest repository of
Python scientific packages for Windows.

Cheers,
Carlos

El 23/02/14 06:57, DrBwts escribió:
> --
> You received this message because you are subscribed to the Google
> Groups "spyder" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to spyderlib+...@googlegroups.com.
> To post to this group, send email to spyd...@googlegroups.com.
> Visit this group at http://groups.google.com/group/spyderlib.
> For more options, visit https://groups.google.com/groups/opt_out.

DrBwts

unread,
Feb 26, 2014, 5:20:30 AM2/26/14
to spyd...@googlegroups.com
Thanks Carlos that worked fine.

Much appreciated

Nic
Reply all
Reply to author
Forward
0 new messages