Skip to content

Instantly share code, notes, and snippets.

@ycku
Last active June 11, 2020 06:47
Show Gist options
  • Save ycku/81bb3549757e7be1b00b07aa27be2db4 to your computer and use it in GitHub Desktop.
Save ycku/81bb3549757e7be1b00b07aa27be2db4 to your computer and use it in GitHub Desktop.
Note: Offline python pip install

Online host

  • Try to install 'pyvmomi' module
$ mkdir pyvmomi
$ cd pyvmomi
$ pip download pyvmomi
  • Now the related modules of 'pyvmomi' are downloaded in the folder.
  • Copy the folder 'pyvmomi' to offline host.

Offline host

$ cd pyvmomi
$ pip install pyvmomi --no-index --find-links .
  • Now you've installed the module.
  • If there are still lacks of some modules, go back to online host and execute 'pip download' for those modules repeatedly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment