Skip to content

Instantly share code, notes, and snippets.

@otech-nl
Last active November 23, 2016 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save otech-nl/c6770bbe21b0c072e5b980baa3995560 to your computer and use it in GitHub Desktop.
Save otech-nl/c6770bbe21b0c072e5b980baa3995560 to your computer and use it in GitHub Desktop.
python on MacOS
# enforce UTF-8 even if defaultencoding says 'ascii'
export PYTHONIOENCODING=utf-8
# make sure pip only works in a virtualenv
export PIP_REQUIRE_VIRTUALENV=true
# unless...
gpip() {
PIP_REQUIRE_VIRTUALENV="" pip "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment