Skip to content

Instantly share code, notes, and snippets.

@FangliangBai
Last active July 22, 2019 13:18
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 FangliangBai/cc66cfff3adced24b0533acfb96e2668 to your computer and use it in GitHub Desktop.
Save FangliangBai/cc66cfff3adced24b0533acfb96e2668 to your computer and use it in GitHub Desktop.
Transfer the venv from one computer to another one.
1. Two computers install `Python` and `virtualenv` of same version.
2. On source computer:
pip freeze > requirements.txt
pip download -d your_offline_packages_folder_dir -r requirements.txt
3. On target computer:
pip install --no-index --find-links=your_offline_packages_folder_dir -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment