omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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?

    Pythonista
    4
    8
    5771
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DrNo152
      DrNo152 last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        Coincidentally, I recently wrote a litte script to install SymPy:

        https://gist.github.com/omz/62b80206913798380cb0

        1 Reply Last reply Reply Quote 0
        • DrNo152
          DrNo152 last edited by

          Awesome, thanks: along these lines I have now also installed the 'mpmath' package.

          1 Reply Last reply Reply Quote 0
          • BeCC78
            BeCC78 last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • omz
              omz last edited by

              @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).

              1 Reply Last reply Reply Quote 0
              • BeCC78
                BeCC78 last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • juanvascas98
                  juanvascas98 last edited by

                  Would it be possible a new script to install sympy 1.1.1? Thanks

                  1 Reply Last reply Reply Quote 0
                  • omz
                    omz last edited by omz

                    @juanvascas98 That should generally be possible, as SymPy is a pure Python module.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Powered by NodeBB Forums | Contributors