Ask coding questions

← Back to all posts
How do you import the sympy library?

I need to be able to calculate the derivative of a really ugly function, and I have no idea how to do so. I searched it up on google, and people said to import the sympy library, which would allow me to calculate derivatives, but I don't know how to.

Geocube101 (628)


import sympy

...but in the case of a ModuleNotFoundError, then try...

from os import system
system('pip install sympy')
import sympy
ayyubali1 (0)

on your shell type pip install sympy
then again on your shell type git clone git://