Skip to content

Instantly share code, notes, and snippets.

@rafamdr
Created March 16, 2021 15:30
Show Gist options
  • Save rafamdr/1172cb7309f5fada3b8ff1cb24381b81 to your computer and use it in GitHub Desktop.
Save rafamdr/1172cb7309f5fada3b8ff1cb24381b81 to your computer and use it in GitHub Desktop.
Install pip packages from tarballs or whl files
#!/bin/bash
set -e
DIRECTORY=$1
while read -r package; do
venv/bin/pip install "${package}" -f "$DIRECTORY"/ --no-index
done < requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment