Python Forum

Full Version: I need assistance with getting sympy to work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
You can drop from sp import *,look like it dos nothing now.
Here a Notebook test.