Skip to content

Instantly share code, notes, and snippets.

View guliujian's full-sized avatar

airbob,gu guliujian

  • RealAI.Inc
  • Beijing,China
View GitHub Profile
@tevino
tevino / fix_virtualenv
Last active March 24, 2024 09:41
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"