Skip to content

Instantly share code, notes, and snippets.

@mjrinker
Forked from stucka/pipreplace.sh
Last active May 21, 2025 09:38
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`
@stritti
Copy link

stritti commented May 21, 2025

Many thanks, but should be same file pipfreeze.txt in both lines :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment