[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) > ^ > > Dennis Roseman > Department of Mathematics > University of Iowa > > > > You might want to try the following:
1. Download git for Windows at http://code.google.com/p/msysgit/ 2. Get the latest sympy with "git clone git://git.sympy.org/sympy.git" command from a console 3. Then "cd sympy" into the sympy directory created with git and install sympy with "python setup.py install" This worked for me on an XP system running in VirtualBox. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
