Skip to content

Instantly share code, notes, and snippets.

@Tukki
Created January 14, 2016 06:57
Show Gist options
  • Save Tukki/89db933126b7796130ec to your computer and use it in GitHub Desktop.
Save Tukki/89db933126b7796130ec to your computer and use it in GitHub Desktop.
在virtualenv里面使用bpython
http://stackoverflow.com/questions/11172379/python-and-bpython-using-different-pythonpaths-in-virtualenv
在virtualenv里面安装, 或修改 .bash/.zshrc
bpython() {
if test -n "$VIRTUAL_ENV"
then
PYTHONPATH="$(python -c 'import sys; print ":".join(sys.path)')" \
command bpython "$@"
else
command bpython "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment