【发布时间】:2014-07-03 10:43:33
【问题描述】:
我正在运行 Mac OS X v10.9.2。当我登录到我的终端时,我立即受到以下信息的欢迎:
Last login: Wed May 14 22:45:00 on ttys007
-bash: export: `/Users/NabilKaz/Library/Enthought/Canopy_64bit/User/bin/activate': not a valid identifier
我使用 Enthought Canopy,我猜它正在激活 Python 虚拟环境?
这是我的 .bash_profile 的内容:
export PATH="/usr/local/mysql/bin:$PATH"L_ENV_DISABLE_PROMPT=1 source /Users/NabilKaz/Library/Enthought/Canopy_64bit/User/bin/activate
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Added by Canopy installer on 2014-02-19
# VIRTUAL_ENV_DISABLE_PROMPT can be set to '' to make bashprompt show that Canopy is active, otherwise 1
VIRTUAL_ENV_DISABLE_PROMPT=1 source /Users/NabilKaz/Library/Enthought/Canopy_64bit/User/bin/activate
【问题讨论】:
-
在导出行的
L_ENV_DISABLE_PROMPT=1前加一个空格。
标签: python bash terminal .bash-profile