-
-
Save vyach-vasiliev/b4a27917f1f00a3c1da7607bf3133c18 to your computer and use it in GitHub Desktop.
Force pip to reinstall all Python packages (works great with https://gist.github.com/stucka/0ced1cc71e1a5c374a18874471636d69)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pip freeze --local >pipfreeze.txt | |
pip install --upgrade --force-reinstall -r pipfreeze.txt | |
# second variant | |
#apt-get install libxml2-dev libssl-dev libffi-dev libxslt1-dev python-dev libjpeg-dev | |
#pip freeze --local >pipfreeze.txt | |
#tr '\n' ' ' < pipfreeze.txt >pipfreeze2.txt | |
#pip install --upgrade --force-reinstall `cat pipfreeze2.txt` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment