在ZSh中找不到Anaconda吗? [英] Anaconda not found in ZSh?
问题描述
我通过命令行安装了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屋!