Skip to content

Instantly share code, notes, and snippets.

View mmeasic's full-sized avatar

Saint Shuttles-worth mmeasic

  • Meta
  • Barcelona
View GitHub Profile
@mmeasic
mmeasic / fix_virtualenv
Created October 14, 2019 10:05 — forked from tevino/fix_virtualenv
Fix python virtualenv after python update
#!/usr/bin/env bash
ENV_PATH="$(dirname "$(dirname "$(which pip)")")"
SYSTEM_VIRTUALENV="$(which -a virtualenv|tail -1)"
BAD_ENV_PATHS="/usr/local"
echo "Ensure the root of the broken virtualenv:"
echo " $ENV_PATH"