virtualenvwrapper.sh不会运行

时间:2011-04-14 20:36:06

标签: macos bash virtualenv virtualenvwrapper

我刚尝试安装virtualenvwrapper,当我 运行以下内容(如instructions中所示)

source /usr/local/bin/virtualenvwrapper.sh

失败了以下内容:

-bash: /usr/local/bin/virtualenvwrapper.sh: line 347: syntax error near unexpected token `('
-bash: /usr/local/bin/virtualenvwrapper.sh: line 347: `workon () {'

还有其他人正在试验这个吗?

1 个答案:

答案 0 :(得分:3)

在采购/usr/local/bin/virtualenvwrapper.sh之前,您可以稍微清理一下Bash shell环境。

unalias -a
unset -f $(compgen -A function)
source /usr/local/bin/virtualenvwrapper.sh