2014-05-15 40 views
2

我正在運行Mac OS X v10.9.2。當打開終端帖子導出「Python無效的標識符」激活

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雨棚,我猜測它的激活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 
+0

將一個空間之前'L_ENV_DISABLE_PROMPT = 1'出口線。 – anishsane

回答

0

這條線:

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 
+0

謝謝!這工作完美。 – user2684929