Skip to content

Instantly share code, notes, and snippets.

@mjrinker
Forked from stucka/pipreplace.sh
Last active July 23, 2020 21:31
Show Gist options
  • Save mjrinker/a23e6336661bb29f6523028575d636e8 to your computer and use it in GitHub Desktop.
Save mjrinker/a23e6336661bb29f6523028575d636e8 to your computer and use it in GitHub Desktop.
Force pip to reinstall all Python packages
#!/bin/bash
pip freeze --local >pipfreeze.txt
pip install --upgrade --force-reinstall --no-cache-dir `cat pipfreeze2.txt`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment