Skip to content

Instantly share code, notes, and snippets.

@connorjan
Last active August 3, 2021 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save connorjan/b9aa8b8794ba693adc0af163ab96804d to your computer and use it in GitHub Desktop.
Save connorjan/b9aa8b8794ba693adc0af163ab96804d to your computer and use it in GitHub Desktop.

Using PIP to Download Packages for Offline Installation on a Different Platform

  1. 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>

  1. Transfer the packages to the offline machine

  2. cd into the directory with the packages that were transferred and install them:

pip install --no-index --find-links="." <package> --prefix=<installation-directory>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment