- On your device with access to the network, download the package and its requirements:
pip install <package> --download=<download-directory> --no-binary=:all:
or
pip download <package>
-
Transfer the packages to the offline machine
-
cd
into the directory with the packages that were transferred and install them:
pip install --no-index --find-links="." <package> --prefix=<installation-directory>