在ZSh中找不到Anaconda吗? [英] Anaconda not found in ZSh?

查看:188
本文介绍了在ZSh中找不到Anaconda吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过命令行安装了Anaconda. bash文件.

I installed Anaconda via command line. The bash file.

如果Im在bash中,我可以打开并使用anaconda,例如笔记本电脑,ipython等.

If Im in bash, I can open and use anaconda, like notebooks, ipython, etc.

如果我将shell更改为ZSH,则所有anaconda命令都将显示为未找到".

If I change my shell to ZSH, all the anaconda commands appear like "not found".

我如何使其在zsh中工作?

How I can make it work in zsh?

我将Mac和OSx Sierra一起使用.

I use a Mac with OSx Sierra.

预先感谢

推荐答案

我遇到了类似的问题.

我检入了.profile.bashrc.bash_profile点文件,以便找到可以复制到.zshrc文件中的所有PATH信息.果然:

I checked in my .profile, .bashrc, and .bash_profile dot files in order to find any PATH information that I could copy over into my .zshrc file. Sure enough:

# added by Miniconda3 4.2.12 installer
export PATH="/Users/username/miniconda3/bin:$PATH"

在运行source ~/.zshrc并添加了这些行之后,我可以启动jupyter笔记本服务器.

After running source ~/.zshrc with those lines added, I could fire up my jupyter notebook server.

这篇关于在ZSh中找不到Anaconda吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆