Or you can do something like create a list of all the dependencies (recursively) of all the packages and then use pip to only fetch/download all those packages.
Later you can take all those files and pip install them from the local folder. You can do something like pip path/packagename.tar.gz to install it locally. For creating the list of dependencies I am sure there is something like that available as a module or part of pip cmdline options. As for zipped folder download for pypi packages, I think you are going to have a hard time nowadays because you can upload them in many formats like tar, wheel, zip and some others as a package maintainer and usually people upload multiple of those. This exact package is then resolved according to your platform and python version. So, its a lot of work to do by yourself. Better let pip handle it. I am sure you'll find an easy standard solution to this if you go along these lines. Please share your findings in the end. On Jun 7, 2017 7:36 PM, "Harsh Gupta" <gupta.hars...@gmail.com> wrote: > If you are want download a lot of packages and can't do pip install, you > can try creating a local mirror of PyPI. You can use the following tools > for that: > > * Bandersnatch https://bitbucket.org/pypa/bandersnatch > * DevPi http://doc.devpi.net/latest/ > > > On 7 June 2017 at 18:53, Rajvi Dhimar <rajvidhima...@gmail.com> wrote: > > > Hello experts, > > > > I am trying to get certain packages from pypi onto a network device. On > the > > device I cannot do a 'pip install'. > > I need to write a shell scripy to fetch the package (using curl or fetch > > command) from PyPI on to my network device. > > > > Earlier, the packages were located at > > https://pypi.python.org/packages/source. Suppose I want the tar of > v1.0.0 > > of package abc, > > I could do it via the following command: > > *fetch https://pypi.python.org/packages/source/A/abc/abc-1.0.0 > > <https://pypi.python.org/packages/source/A/abc/abc-1.0.0>.tar.gz* > > > > Now I see that the packages are present at: * > https://pypi.python.org/simpl > > e/ > > <https://pypi.python.org/simple/>.* > > Eg: All the abc packages would be at *https://pypi.python.org/simple/abc > > <https://pypi.python.org/simple/abc>* > > But a specific package link looks something like: > > > > * > > https://pypi.python.org/packages/33/db/9931c645626f9bf77ecdd > > b7e7d5df90a3b6c4/abc-1.0.0.tar.gz > > <https://pypi.python.org/packages/33/db/9931c645626f9bf77ecd > > db7e7d5df90a3b6c4/abc-1.0.0.tar.gz>* > > > > The link as we see, won't be uniform across packages as there is a > dynamic > > database ID kind of thing in the link. > > Beacuse I am trying to download a huge number of packages via the same > > shell script, I need a generic path where > > the packages are in PyPI. Does anyone know, where the PyPI packages are > > hosted? > > > > Thanks, > > Rajvi Dhimar > > _______________________________________________ > > BangPypers mailing list > > BangPypers@python.org > > https://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Harsh > Sent from a GNU/Linux > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > https://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers