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.


    Installing Sympy

    Pythonista
    4
    5
    3799
    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.
    • rstockford
      rstockford last edited by

      I am having problems installing the py 3 version of Sympy.
      The release appears to be at:

       https://github.com/sympy/sympy/releases/tag/sympy-1.0 /sympy-1.0.tar.gz
      

      When I attempt to open this using the install_sympy script, I get 'file could not be opened successfully.

      Is there another way?

      rs

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

        https://forum.omz-software.com/topic/4030/pure-python-external-libs

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

          Pythonista already includes Sympy by default (for both Python 2 and 3), so you usually don't need to install it yourself. The version that comes with Pythonista is 0.7.4.1, which is a bit old, so if you need features or fixes from newer versions, you do need to install the current version manually.

          As for installing Sympy (and other pure Python libraries) manually, you cannot use the setup.py or other installation script that comes with the library. These setup scripts assume that you're using a normal Python installation on a normal system, and don't work in Pythonista's environment. Instead, you should try Stash's pip command - it can install most pure Python packages from PyPI without any extra work.

          If that doesn't work for some reason, you need to manually download the source code (which you probably did already to get the install script) and move/copy the package folder or module file into site-packages. In the case of Sympy, that is the sympy folder in the source .tar.gz.

          Phuket2 1 Reply Last reply Reply Quote 2
          • rstockford
            rstockford last edited by

            OK. I solved the problem by moving the install script into the root directory.

            rs

            1 Reply Last reply Reply Quote 0
            • Phuket2
              Phuket2 @dgelessus last edited by

              @dgelessus, this is not an important question to me at least right now. But from what I can see pip in stash is only aware of modules it's installed. So 'pip update sympy' fails as it's not aware it's installed. But it would seems to me that stash could know the pre installed Libs and do the update to the correct directory. I know little about this, but that is what comes to mind. I can also imagine a Pythonista app/uiView using the Stash API to present a list of installed packages with version numbers and a update (update to version) button same as they do in PyCharm.

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