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.


    Numpy Module

    Pythonista
    numpy help please module import
    3
    8
    7501
    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.
    • DaniDelgon
      DaniDelgon last edited by

      Hi, when I run my .py scripts and import the module numpy, it appears an error: no module named numpy.
      I have been looking for a solution, and i read that numpy is not in the standard library of pythonista.
      I work on ios, and i look for a quickly solution for this problem, I have an exam this friday, if you could help out importing numpy, I will be grateful, thank you.

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

        Are you sure that you are on a current iOS and a current version of Pythonista?

        What do you get when you do:

        import platform
        print(platform.platform())
        import numpy
        
        DaniDelgon 1 Reply Last reply Reply Quote 0
        • DaniDelgon
          DaniDelgon last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • DaniDelgon
            DaniDelgon @ccc last edited by

            @ccc I executed your script but it dont works to me, still ImportError:No module named numpy.
            i work in the version of pythonista tha is based on the 2.7.5 python version, and i dont know what do you mean with current ios, i dont know how to see my version of ios.
            if you could help me again, i would be grateful again, thank you.

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

              You can see your iOS version with Settings>General>About.
              . All versions of pythonista are based on 2.7.5.

              Your pythonista version can be found by visiting Settings>General>Usage>Pythonista on iOS 8 and earlier, or by Settings>General>Storage and iCloud Usage> Manage Storage>Pythonistaon iOS 9. You should see something that looks like this:

              I've circled where the version is indicated.

              Please post your iOS version and Pythonista version.

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

                Try commenting out the last line with a #

                import platform
                print(platform.platform())
                # import numpy
                
                1 Reply Last reply Reply Quote 0
                • DaniDelgon
                  DaniDelgon @Webmaster4o last edited by

                  @Webmaster4o My iOS version is 6.0.1, and my pythonista version is 1.3, how do i actualize to the 1.6 version of pythonista? thank you.

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

                    Pythonista 1.6 is only supported on iOS 8 or later. Numpy was added with pythonista 1.5. Pythonista 1.5 is only available to devices running iOS 7 or later. If your device only supports iOS 6, you're out of luck. Check Settings>General>Software Update to see if your device can run iOS 7 or later.

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