To add ford to the answer to get around cross-platform issues, you can do the following:
On a machine with internet access, do:
$ pip install --download <DIR> -r requirements.txt $ pip install --download <DIR> -r requirements.txt --no-use-wheel
This will load the available wheels for the packages in case the wheel crosses the platform, but also download the source so that the packages can be built on any platform if the wheel does not work for the target system.
Then, as Ford suggested, after moving from a machine with Internet access to another machine, do:
$ pip install --no-index --find-links=[file://]<DIR> -r requirements.txt
I can not guarantee that this will work in every case, but it worked for me when I tried to download the package and its dependencies on a Windows machine with Internet access for installation on a CentOS computer without Internet access. There may be other factors to consider when using different versions of Python on each machine (in my case, I had Python 3.4 for both).
Eduardo
source share