打开终端柱导出时';不是有效的标识符';对于Python源代码激活
我正在运行MacOSXV10.9.2。当我登录到我的终端时,我立即收到以下信息:打开终端柱导出时';不是有效的标识符';对于Python源代码激活,python,bash,terminal,.bash-profile,Python,Bash,Terminal,.bash Profile,我正在运行MacOSXV10.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 我使用的是Enthound Canopy,我猜它正在激活一个Python虚拟环境 以下是我的.bash_配置文件的内容
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
我使用的是Enthound Canopy,我猜它正在激活一个Python虚拟环境
以下是我的.bash_配置文件的内容:
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
这一行:
export PATH="/usr/local/mysql/bin:$PATH"L_ENV_DISABLE_PROMPT=1 source /Users/NabilKaz/Library/Enthought/Canopy_64bit/User/bin/activate
应该是
export PATH="/usr/local/mysql/bin:$PATH"
L_ENV_DISABLE_PROMPT=1 source /Users/NabilKaz/Library/Enthought/Canopy_64bit/User/bin/activate
在导出行中的
L\u ENV\u DISABLE\u PROMPT=1
前面加一个空格。