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
-
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
-
-
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'spip
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. -
OK. I solved the problem by moving the install script into the root directory.
rs
-
@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.