how to install package offline

Solutions on MaxInterview for how to install package offline by the best coders in the world

showing results for - "how to install package offline"
Alejandra
18 Feb 2016
11 -  pip freeze > requirements.txt
22 -  mkdir wheelhouse && pip download -r requirements.txt -d wheelhouse
33 -  Copy requirements.txt into wheelhouse directory
44 -  Archive wheelhouse into wheelhouse.tar.gz with tar -zcf wheelhouse.tar.gz wheelhouse
5	 or make simply zip or rar file
65 -  Then upload wheelhouse.tar.gz or zip or rar to your target machine:
76 -  Execute 
8	 tar -zxf wheelhouse.tar.gz to extract the files or unzip
97 -  Execute 
10	 pip install -r wheelhouse/requirements.txt --no-index --find-links wheelhouse to install the libs and their dependencies