Instructions for downloading Python packages for installation on a different host.
- Start a shell inside a CentOS/7 (or any other system) Docker Container with the exact version of Python that is installed on the other host.
mkdir /tmp/python-package
cd /tmp/python-package
docker run -i -t --rm --entrypoint /bin/bash -v `pwd`:/work python:3.7.0-centos7
- Install and upgrade pip3 (if it doesn't already exist)
yum install python3-pip
pip3 install --upgrade pip
- Download the packages.
cd /work
pip3 download <name>
- Exit the Docker Container
exit