Install Python Modules Offline
OS: Windows 10; Windows Server 2012 R2
Preceding Operation
Option 1: pip cmd
# -d: Download packages into <dir>
# download the newest version of module into offline_package dir
> pip download -d offline_package/ module_nameRelated options for pip download cmd
-r: Install from the given requirements file
--python-version: Only download wheels compatible with Python interpreter version <version>
-no-index: Ignore package index (only looking at --find-links URLs instead)
--find-links: If a url or path to an html file, then parse for links to archives
Get Shawn Shao’s stories in your inbox
Join Medium for free to get updates from this writer.
Notes: Specify version of the module might lead to downloading the compressed file(.tar.gz) instead of wheel file
Option 2: Grab wheel file from website
Unofficial Windows Binaries for Python Extension Packages by Christoph Gohlke
Install module offline
> python -m pip install module_name





