問題描述
我通過命令行安裝了 Anaconda.bash 文件.
I installed Anaconda via command line. The bash file.
如果我在 bash 中,我可以打開和使用 anaconda,比如 notebooks、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?
我使用裝有 OSx Sierra 的 Mac.
I use a Mac with OSx Sierra.
提前致謝,
推薦答案
我遇到了類似的問題.
我簽入了我的 .profile
、.bashrc
和 .bash_profile
點文件,以便找到可以復制的任何 PATH 信息進入我的 .zshrc
文件.果然:
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 notebook 服務器.
After running source ~/.zshrc
with those lines added, I could fire up my jupyter notebook server.
這篇關于在 ZSh 中找不到 Anaconda?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!