On Jun 7, 9:40 am, smichr <[email protected]> wrote: > > The easiest thing for you to do is add a file named "sympy.pth" into > > your site-packages. It should have just one line: the full path to > > your git checkout. For example, I have my checkout in > > /Users/rkern/git/sympy/ (i.e. /Users/rkern/git/sympy/setup.py exists). > > Thus, I would have just the line > > > /Users/rkern/git/sympy > > On Jun 7, 7:18 am, Robert Kern <[email protected]> wrote: > > > The easiest thing for you to do is add a file named "sympy.pth" into > > your site-packages. It should have just one line: the full path to > > your git checkout. For example, I have my checkout in > > /Users/rkern/git/sympy/ (i.e. /Users/rkern/git/sympy/setup.py exists). > > OK, here's a demonstration that 'setup.py' exists like in your > example: > > --->dir "C:\Documents and Settings\chris\sympy > > \setup.py" > Volume in drive C is BB_2 > Volume Serial Number is 0482-A52E > > Directory of C:\Documents and Settings\chris\sympy > > 05/11/2009 05:04 AM 8,275 setup.py > 1 File(s) 8,275 bytes > 0 Dir(s) 83,333,206,016 bytes free > --- > > And this is what is in the pth file. I used quotes since the path has > spaces in it: > > --- > > >more \python26\lib\site-packages\sympy.pth > > "C:/Documents and Settings/chris/sympy/" > --- > > But when I start python and try to load sympy I get > > ###>>> from sympy import * > > Traceback (most recent call last): > File "<interactive input>", line 1, in <module> > ImportError: No module named sympy > > ### > > Do you have other ideas for a windows system or can you see what I did > wrong? >
You could also "hack" your sys.path to make sure the correct sympy gets imported first, i.e.: >>> sys.path.insert(0, 'C:/Documents and Settings/chris/sympy/') >>> sys.path ['C:/Documents and Settings/chris/sympy/', '', 'C:\\Python26\ \python26.zip', 'C: \\Python26\\DLLs', 'C:\\Python26\\lib', 'C:\\Python26\\lib\\plat-win', 'C:\\Pyth on26\\lib\\lib-tk', 'C:\\Python26', 'C:\\Python26\\lib\\site- packages'] This is however not a clean solution (rather a security hole), but it should work. cd'ing to your sympy directory also works fine on Windows. Vinzent --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
