Installing scipy - shellista unzip failing
I'm having an issue trying to install scipy on pythonista. I've used pipista to download the scipy.tar.gz file and have tried using shellista to unzip it to then import it however when I try the command: gunzip('scipy-0.16.0.tar.gz') the console returns file not found but there is clearly a file there with this name as when I try the ls command the file is visible. Any thoughts on how to fix this would be much appreciated!
You cannot install scipy. Pythonista only supports installing pure-Python packages. You cannot install any c-based libraries.
Is there any way to actually unzip the tar file using shellista? Having trouble doing this for any package I download
Don't use Shellista, it's old. Use stash instead.
In a normal Unix shell (as well as stash) you'd decompress a gzipped tarball like this:
tar -xzf name-of-the-file.tar.gz
xflag says that you want to extract a file, the
zflag says that the tar file is also compressed using gzip, and the
fflag followed by the file name specifies what file to extract.
If you don't want to use stash for some reason, the two Shellista commands should be:
gunzip name-of-the-file.tar.gz untar name-of-the-file.tar
In both cases, keep in mind that you're in a command shell, not the interactive Python interpreter. Shell commands work differently than Python functions. When you type a command name, it is always run. Anything after the command name is passed as arguments, with spaces separating them. If you want to use a space as part of an argument, enclose it in double quotes, or put a backslash before the space.
That's amazing thanks for your help! 😊
I doubt you'll have any success with installing scipy, however.