Failed in importing sympy in yade

Asked by Leonard

Hello,
I want to use sympy to solve equations in yade script. I have installed sympy in Ubuntu because there is no error when I open python3 and import sympy in terminal. However, when I import sympy in yade, it failed as:
In [1]: import sympy
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/usr/bin/yade in <module>()
----> 1 import sympy

ImportError: No module named sympy

My yade version is 2018.02b, my Ubuntu version is 18.04.
Could you please help me with that?
Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

> My yade version is 2018.02b

2018.02b uses python2, so just install sympy for python2

Jan

Revision history for this message
Leonard (z2521899293) said :
#2

Thanks Jan Stránský, that solved my question.