Skip to content

Instantly share code, notes, and snippets.

@mjalajel
Created February 28, 2017 08:30
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 mjalajel/b43a7805ff4fa5bceb7df0f05c88a0f8 to your computer and use it in GitHub Desktop.
Save mjalajel/b43a7805ff4fa5bceb7df0f05c88a0f8 to your computer and use it in GitHub Desktop.
export/import pip dependencies (with versions)
#Export (machine A)
source {$venv_path}/bin/activate
pip freeze --local > requirements.txt
#Import (machine B)
source {$venv_path}/bin/activate
pip install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment