Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/341.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
打开终端柱导出时';不是有效的标识符';对于Python源代码激活_Python_Bash_Terminal_.bash Profile - Fatal编程技术网

打开终端柱导出时';不是有效的标识符';对于Python源代码激活

打开终端柱导出时';不是有效的标识符';对于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_配置文件的内容

我正在运行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_配置文件的内容:

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
前面加一个空格。