Forum Archive

Installing scipy - shellista unzip failing

BennyPearce14

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!

Webmaster4o

You cannot install scipy. Pythonista only supports installing pure-Python packages. You cannot install any c-based libraries.

BennyPearce14

Is there any way to actually unzip the tar file using shellista? Having trouble doing this for any package I download

dgelessus

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

The x flag says that you want to extract a file, the z flag says that the tar file is also compressed using gzip, and the f flag 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.

BennyPearce14

That's amazing thanks for your help! 😊

Webmaster4o

I doubt you'll have any success with installing scipy, however.