bash 如何在 oh my zsh 中安装 Anaconda

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24760748/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 10:52:30  来源:igfitidea点击:

How to install Anaconda in oh my zsh

macosbashzshanaconda

提问by RoyX

I try to install Anaconda on my Mac my shell is using oh my zsh now

我尝试在我的 Mac 上安装 Anaconda 我的 shell 现在正在使用 oh my zsh

when I install zsh Anaconda.sh, it returns this error

当我安装 zsh Anaconda.sh 时,它返回此错误

cannot execute native osx-64 binary, output from 'uname -a' is:
Darwin Roy-MacBook-Pro.local 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64

but I can install it with bash Anaconda.sh, and it works well

但我可以用 bash Anaconda.sh 安装它,而且运行良好

how can I solve the problem

我该如何解决问题

回答by asmeurer

The Anaconda installer is written in bash. You need to run bash Anaconda.sh, regardless of what shell you use. The only difference is that at the end, you'll need to add anaconda to your PATH in your zshrc rather than bashrc, which is what the installer will do.

Anaconda 安装程序是用 bash 编写的。bash Anaconda.sh无论您使用什么外壳,您都需要运行。唯一的区别是,最后,您需要将 anaconda 添加到您的 zshrc 而不是 bashrc 中的 PATH,这是安装程序将执行的操作。