Skip to main content

Install packages offline

<..>

any reason you could think of - server with restricted internet access, strict firewalls, something literally offline?

 

How

Ideally - take requirements file (pip freeze > requirements.txt) and copy it to separate folder. Then (on internet connected machine) download packages:
pip download -r requirements.txt

Copy files to disconnected machine and:

pip install -r requirements.txt --no-index --find-links .