Skip to content
Sign upLog in
← Back to Community

How do you import the sympy library?

Profile icon
ARUNADITI

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.

Voters
Profile icon
SamuelSurfboard
Profile icon
DeveloperPerson
Profile icon
AdvikWadhwa
Profile icon
CalSch
Profile icon
jeanpat
Profile icon
ARUNADITI
Comments
hotnewtop
Profile icon
Geocube101

Try...

import sympy

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

from os import system system('pip install sympy') import sympy
Profile icon
ayyubali1

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