SymPy is pretty great, but some of its basic operations (e.g. subs() and evalf(), which substitute numeric values for symbolic variable names) can be exceedingly slow. There are workarounds like autowrap, which generates C code to do this orders of magnitude faster. There are also reimplementation efforts in C++ like symengine to address the performance issues.