Skip to content

Instantly share code, notes, and snippets.

@kapilt
Created September 10, 2014 13:51
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 kapilt/c65b1dc77f6832c31bff to your computer and use it in GitHub Desktop.
Save kapilt/c65b1dc77f6832c31bff to your computer and use it in GitHub Desktop.
Using pip for an offline install
# Capture all the deps
mkdir dist-cache
pip install -d dist-cache -r requirements.txt
cd ..
tar czvf mypackage-archive.tgz
# Transfer that to a new machine
# On the separate machine in a virtualenv
# Extract tarball and use
pip install --no-index --find-links=file://$PWD/dist-cache -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment