phow to install python modules in no internet in sercer

Solutions on MaxInterview for phow to install python modules in no internet in sercer by the best coders in the world

showing results for - "phow to install python modules in no internet in sercer"
Isabella
07 Mar 2020
1On the machine where I have access to Internet:
2
3mkdir keystone-deps
4pip download python-keystoneclient -d "/home/user/keystone-deps"
5tar cvfz keystone-deps.tgz keystone-deps
6Then move the tar file to the destination machine that does not have Internet access and perform the following:
7
8tar xvfz keystone-deps.tgz
9cd keystone-deps
10pip install python_keystoneclient-2.3.1-py2.py3-none-any.whl -f ./ --no-index
11You may need to add --no-deps to the command as follows:
12
13pip install python_keystoneclient-2.3.1-py2.py3-none-any.whl -f ./ --no-index --no-deps
Edoardo
25 Sep 2016
1If you want to install a bunch of dependencies from, say a requirements.txt, you would do:
2
3mkdir dependencies
4pip download -r requirements.txt -d "./dependencies"
5tar cvfz dependencies.tar.gz dependencies
6And, once you transfer the dependencies.tar.gz to the machine which does not have internet you would do:
7
8tar zxvf dependencies.tar.gz
9cd dependencies
10pip install * -f ./ --no-index