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

Question

Asked By – John C

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.

Now we will see solution for issue: How to use Python’s pip to download and keep the zipped files for a package?


Answer

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

 pip download <package-name>

This question is answered By – Anton Khodak

This answer is collected from stackoverflow and reviewed by FixPython community admins, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0