Hi guys,
I don't understand the relationship of sympy and mpmath.
As I followed the instructions of http://docs.sympy.org/latest/install.html#mpmath
I installed mpmath and sympy as you can see in the following lines.
$ pip install sympy
Collecting sympy
Requirement already satisfied: mpmath>=0.19 in /home/atille/.anaconda2/lib/python2.7/site-packages (from sympy)
Installing collected packages: sympy
Successfully installed sympy-1.0
my code includes the following lines
import sys
import mpmath
from sympy import *
from sympy import solve
from sympy import init_printing
but results in this error message
Traceback (most recent call last):
File "./algebraic_calculation_model_6_rescaled.py", line 4, in <module>
import sympy.mpmath
File "/usr/lib/python2.7/dist-packages/sympy/__init__.py", line 20, in <module>
raise ImportError("SymPy now depends on mpmath as an external library. "
ImportError: SymPy now depends on mpmath as an external library. See http://docs.sympy.org/latest/install.html#mpmath for more information.
Can you explain my mistake?
Thank you in advance.
Traceback (most recent call last):
File "./algebraic_calculation_model_6_rescaled.py", line 4, in <module>
import sympy.mpmath
/.../
Can you explain my mistake?
#!~/.anaconda2/bin/python
and it works.