Thank you for quick reply. I'm not sure. I've input git clone ...
Thats all. śr., 10.02.2021, 21:53 użytkownik Oscar Benjamin <oscar.j.benja...@gmail.com> napisał: > On Wed, 10 Feb 2021 at 20:47, Michał Pawłowski > <michal.bozydar.pawlow...@gmail.com> wrote: > > > > Hi. > > > > I have such problem. > > > > I've created py file: > > > > #!/usr/bin/python3 > > > > from sympy import * > > x = Symbol('x') > > print(expand(sin(x)*(x-1)*(x+1))) > > > > When it is inside of SymPy lib dir, it returns correct result in console. > > But, when I put it not inside the lib dir, it tells me, that: > > > > NameError: name 'Symbol' is not defined > > > > How can I fix it, to be able to execute this file from anywhere in my > directory tree? > > That should work fine. Have you actually installed sympy or have you > just downloaded the code? > > By any chance have you created a file somewhere called "sympy.py" > because that would be picked up by "import sympy". > > -- > Oscar > > -- > You received this message because you are subscribed to a topic in the > Google Groups "sympy" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/sympy/bPMu9bCGDPQ/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > sympy+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/CAHVvXxTt9-sVnR4RYtDVuRzLgwOFYbv3Jr--uaqvgyO1dVNxNQ%40mail.gmail.com > . > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CACGD5t%3D8gwR%3D17NbsTPT_TTmuiRDgAHPj95CK1CkXUGzgJ0Tdw%40mail.gmail.com.