Skip to content

Instantly share code, notes, and snippets.

@cameronp98
Created December 19, 2021 19:38
Show Gist options
  • Save cameronp98/749a6cc5ccc64ca95aff9da675906dd4 to your computer and use it in GitHub Desktop.
Save cameronp98/749a6cc5ccc64ca95aff9da675906dd4 to your computer and use it in GitHub Desktop.
Remake a venv after rebuilding python
#!/bin/bash
pip freeze > requirements.txt
deactivate
rm -rf ./venv
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment