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 scipy - shellista unzip failing

    Pythonista
    3
    6
    5230
    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.
    • BennyPearce14
      BennyPearce14 last edited by

      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!

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

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

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

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

          1 Reply Last reply Reply Quote 0
          • dgelessus
            dgelessus last edited by 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.

            1 Reply Last reply Reply Quote 1
            • BennyPearce14
              BennyPearce14 last edited by

              That's amazing thanks for your help! 😊

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

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

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