Re:The Story of the SolarWinds Hack
by Godel_unicode on Saturday April 17, 2021 @07:12PM
(#26848261)
python -m venv temp && temp/scripts/activate && python -m pip install -r requirements.txt && tar -czf temp/Lib/site-packages
You're ready for offline install!
Docker's a decent way to address this, since you install the dependencies when building the image rather than when running the container, so you can build the image elsewhere or through CI and run the container on any server without having to allow access to package management repo servers.