Skip to main content

Install packages offline

How to install python (pip) packages offline or with limited connectivity to internet:

Create requirements.txt

it should contain all packages you wish to download. Either create it manually:

charset-normalizer==2.1.1
click==8.1.3
colorama==0.4.6
fastapi==0.88.0
h11==0.14.0

either run pip freeze > requirements.txt in (virtual) environment.

 

Download files

on machine, connected to internet, run:

pip download -r requirements.txt

 

Install offline

on offline machine run:

pip install --no-index --find-links C:\path\to\downloaded\files -r requirements.txt