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.


    How to install networkx (or any other package)

    Pythonista
    5
    7
    6929
    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.
    • london_gambler
      london_gambler last edited by

      Hi, I was wondering whether there is a way to install networkx (which is a package on pypi) or how to install other packages in general. I am a bit confused with the different ways people are suggesting, such as using wget or using stash, etc. How do we actually install packages? I would greatly appreciate any help on this... Thanks.

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

        If .you search on the forum for networkx, you will see that this question has been asked and answered several times.

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

          It would be nice if you could actually be of help instead of telling me to 'look it up'. I already have- and the answer given two years ago (downloading package and then using iTunes and/or some other program to put it into site packages) no longer works since iOS 8. Pythonista doesn't have iTunes file sharing and from what I understand there is no way to actually import a package either by importing it or by using the 'open in' extension. This is why I asked the question even though an answer was given a couple of years ago.

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

            I did the following steps to install networkx.

            1. In stash, I did "pip install networkx"
            2. networkx got installed but it gave error in installing "decorator"
            3. I tried installing "decorator" module separately ('pip install decorator"), it failed again.
            4. I copied decorator.py from the following url to site-packages
              https://github.com/micheles/decorator/tree/master/src

            5, I tried the following basic example and it worked.
            http://networkx.github.io/documentation/development/examples/basic/properties.html

            1 Reply Last reply Reply Quote 2
            • london_gambler
              london_gambler last edited by

              Thanks so much for your help... I have gotten it to work after following your steps .. much appreciated!

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

                Sorry, I don't see how to install networkx on pythonista on my iPad from these instructions. I don't have a terminal, so I can't run pip, right? And what is stash?

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

                  "What is stash?" is probably the first question you should have asked :) In this case, the search button produced many threads about the StaSh.
                  https://github.com/ywangd/stash

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