Skip to content

Instantly share code, notes, and snippets.

View smlbiobot's full-sized avatar

SML (See-ming Lee) smlbiobot

View GitHub Profile
@smlbiobot
smlbiobot / fix_virtualenv
Created June 23, 2020 13:39 — 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"
@smlbiobot
smlbiobot / fix_virtualenv
Created June 23, 2020 13:39 — 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"