Ok! Thank you for this answer.

I still used the standard python interpreter.
I changed it to

#!~/.anaconda2/bin/python

and it works.

Thank you for your explanations.

Alex

Am Mittwoch, 9. November 2016 20:30:34 UTC+1 schrieb Aaron Meurer:
>
> If you are using the Anaconda Python, neither of these should be 
> necessary. 
>
> Aaron Meurer 
>
> On Wed, Nov 9, 2016 at 5:59 AM, Alexander Tille <[email protected] 
> <javascript:>> wrote: 
> > Hi, 
> > I checked also this solution. 
> > 
> > Traceback (most recent call last): 
> >   File "./algebraic_calculation_model_9_rescaled_D-I-with_rd.py", line 
> 4, in 
> > <module> 
> >     import mpmath 
> > ImportError: No module named mpmath 
> > 
> > I tried to add the anaconda directory to the python path but it doesn't 
> work 
> > because I get the same error message 
> > 
> > 
> PYTHONPATH="${PYTHONPATH}:/home/atille/.anaconda2/lib/python2.7/site-packages"
>  
>
> >      export PYTHONPATH 
> > 
> > 
> > It works fine if I copy the mpmath library from my anaconda directory 
> into 
> > the directory where I execute the code. 
> > In this case I comment the import mpmath command. 
> > But this soultion is really ugly. 
> > 
> > Am Dienstag, 8. November 2016 19:40:56 UTC+1 schrieb Björn Dahlgren: 
> >> 
> >> 
> >> 
> >> On Tuesday, 8 November 2016 15:52:40 UTC+1, Alexander Tille wrote: 
> >> 
> >> Hi, 
> >> 
> >>> 
> >>> Traceback (most recent call last): 
> >>>   File "./algebraic_calculation_model_6_rescaled.py", line 4, in 
> <module> 
> >>>     import sympy.mpmath 
> >>> /.../ 
> >>> 
> >>> Can you explain my mistake? 
> >> 
> >> 
> >> If you change that line to "import mpmath" (and change any code 
> >> referencing it accordingly) it should be fine. 
> >> 
> >> Best regards, 
> >> Björn 
> >> 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "sympy" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at https://groups.google.com/group/sympy. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/sympy/eab0b547-26bb-4aab-9c11-ba38006b19e6%40googlegroups.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/a20e3e48-6a95-4731-83b2-53d4aa828356%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to