Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
How to install a package like sympy?
-
Sorry if I rehash old questions but I could not find an answer (btw the forum search seems to be broken, there comes an 'https://accounts.google.com' page): is there a non-expert way to install a python package like sympy? The install instructions are: (a) extract and download to a folder called “sympy” (I would know how to do that using iExplorer); (b) in a terminal execute 'python setup.py install' (how would one do this?). Supposedly it does not work this way with Pythonista. Is there an alternative/workaround?
-
Coincidentally, I recently wrote a litte script to install SymPy:
-
Awesome, thanks: along these lines I have now also installed the 'mpmath' package.
-
Newbie issues. I run the above script which ran fine, however, import could not find it. I tried compiling it,but this did not help either. I guessing a path issue but am not finding a solution. Any thoughts would be greatly appreciated.
-
@BeCC Do you have the script where you try to import sympy in a folder? If so, you might need to modify <code>sys.path</code> accordingly, for example:
<pre>import sys; sys.path.append('..')
import sympy</pre>
Also, make sure that you ran the installer script from the root folder. If you can't get it to work in the interactive console, restarting the app might help (tap and hold the Pythonista icon in the task switcher, then tap the red button to quit it completely). -
Thanks for the help. Modifying the path got things working, although I'm not sure what I should have done to avoid this extra step.
By the way, Pythonista is a very nice environment to learn in. -
Would it be possible a new script to install sympy 1.1.1? Thanks
-
@juanvascas98 That should generally be possible, as SymPy is a pure Python module.