I need assistance with getting sympy to work - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: I need assistance with getting sympy to work (/thread-33195.html) |
I need assistance with getting sympy to work - alex_0 - Apr-05-2021 I am trying to get sympy to work and am having trouble with it. I have used pip install sympy to get it onto my computer. I tried to make a simple equation to test if the program worked to solve variables because apparently it can do that. import sympy as sp from sp import * # * should give me access to specific variables and the ability to solve equations sp.init_session() eqn = Eq(x+9, 8) solve(eqn)According to this video it should work however it is not. https://www.youtube.com/watch?v=s0Tj2ausMBI I am getting an error which says unable to import sp. I am not sure why this is the case. RE: I need assistance with getting sympy to work - snippsat - Apr-05-2021 You can drop from sp import * ,look like it dos nothing now.Here a Notebook test. |