尽管有出口路径,但康达并不工作

时间:2017-05-05 19:48:43

标签: python anaconda conda

根据建议here,我已确保:

export PATH=~/anaconda/bin:$PATH

写入我的.bash_profile文件。但是当使用conda(即conda --version)时,命令仍然无法识别:

-bash: conda: command not found

为什么conda不工作?

Anaconda将自己安装到/ anaconda而非/ anaconda3中,因为许多资源都倾向于建议。

这是我的.bash_profile:

# Set architecture flags
export ARCHFLAGS="-arch x86_64"
# Ensure user-installed binaries take precedence
export PATH=/usr/local/bin:$PATH
# Load .bashrc if it exists
test -f ~/.bashrc && source ~/.bashrc
if [ -f $(brew --prefix)/etc/bash_completion ]; then
    source $(brew --prefix)/etc/bash_completion
fi
  source '/Users/deepthought/Desktop/GoogleCloudSDK/google-cloud-sdk/path.bash.inc'
fi
  source '/Users/deepthought/Desktop/GoogleCloudSDK/google-cloud-sdk/completion.bash.inc'
fi

# added by Anaconda2 4.3.0 installer
export PATH="/Users/deepthought/anaconda2/bin:$PATH"

# added by Anaconda2 4.3.0 installer
export PATH="//anaconda/bin:$PATH"

# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/deepthought/n/google-cloud-sdk/path.bash.inc' ]; then source '/Users/deepthought/n/google-cloud-sdk/path.bash.inc'; fi

# The next line enables shell command completion for gcloud.
if [ -f '/Users/deepthought/n/google-cloud-sdk/completion.bash.inc' ]; then source '/Users/deepthought/n/google-cloud-sdk/completion.bash.inc'; fi

# added by Anaconda3 4.3.1 installer
export PATH="/anaconda/bin:$PATH"

export PATH=~/anaconda/bin:$PATH

根据评论提出建议 echo $ PATH给出:

/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands

0 个答案:

没有答案