# Install pip packages offline

# Download pip packages on a machine with internet access

  1. Download pip packages
1
2
3
4
5
6
7
8
9
10
mkdir -p ~/wheelhouse
cd ~/wheelhouse

pip3 download pip
pip3 download psutil
pip3 download requests
pip3 download azure-identity
pip3 download azure-keyvault-secrets
pip3 download azure-monitor-query
pip3 download azure-core
  1. Archive the downloaded pip packages
1
tar zcvf wheelhouse.tar.gz wheelhouse/
  1. Copy the archive file to the target machine, extract and install it
1
2
3
4
tar zxvf wheelhouse.tar.gz
cd wheelhouse
pip3 install pip-21.3.1-py3-none-any.whl --no-index -f ./
pip3 install * --no-index -f ./