Search code examples
pythondownloadpipzip

How to use Python's pip to download and keep the zipped files for a package?


If I want to use the pip command to download a package (and its dependencies), but keep all of the zipped files that get downloaded (say, django-socialregistration.tar.gz) - is there a way to do that?

I've tried various command-line options, but it always seems to unpack and delete the zipfile - or it gets the zipfile, but only for the original package, not the dependencies.


Solution

  • pip install --download is deprecated. Starting from version 8.0.0 you should use pip download command:

     pip download <package-name>