Hi Dennis, On Wed, Apr 29, 2009 at 7:46 AM, [email protected] <[email protected]> wrote: > > This might be a duplicate post---I sent something a few minutes ago > but I might not have had a subject line....did not see post come up.. > > I am teaching a course in using software to do mathematics and have > been discussing Python. > I would like to present this to the class but cannot get to first > base. > > I have done some Python programing but never used sympy. > > I just today downloaded sympy-0.6.4. > > In idle on Windows I get: > > Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit > (Intel)] on win32 > Type "copyright", "credits" or "license()" for more information. >>>> from sympy import Symbol, cos > Traceback (most recent call last): > File "<pyshell#0>", line 1, in <module> > from sympy import Symbol, cos > File "C:\Python30\lib\site-packages\sympy\__init__.py", line 23, in > <module> > from sympy.core import * > File "C:\Python30\lib\site-packages\sympy\core\__init__.py", line 21 > exec '%s = _cls()' % (_n) > ^ > SyntaxError: invalid syntax >>>> > > and very similar result from command line on Windows or in Linux---the > slight difference is where the carat is. > > exec '%s = _cls()' % (_n)
Unfortunately Python 3.0 is not compatible with Python 2.6. So far sympy only works with python2.4, 2.5, 2.6 and it works both on linux and windows. Just download the 0.6.4 release and it should just work. Ondrej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---
