Created
September 10, 2014 13:51
-
-
Save kapilt/c65b1dc77f6832c31bff to your computer and use it in GitHub Desktop.
Using pip for an offline install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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