适用于conda 4.6的“ conda init”不适用于macOS mojave

时间:2019-02-06 00:14:04

标签: anaconda conda

conda 4.6发布程序公告称可以运行

conda update conda

然后

conda init

更新工作正常,但是初始化给出了一个错误:

$ conda init
no change     /Users/xxxxxx/anaconda3/condabin/conda
no change     /Users/xxxxxx/anaconda3/bin/conda
no change     /Users/xxxxxx/anaconda3/bin/conda-env
no change     /Users/xxxxxx/anaconda3/bin/activate
no change     /Users/xxxxxx/anaconda3/bin/deactivate
no change     /Users/xxxxxx/anaconda3/etc/profile.d/conda.sh
no change     /Users/xxxxxx/anaconda3/etc/fish/conf.d/conda.fish
no change     /Users/xxxxxx/anaconda3/shell/condabin/Conda.psm1
no change     /Users/xxxxxx/anaconda3/shell/condabin/conda-hook.ps1
no change     /Users/xxxxxx/anaconda3/lib/python3.6/site-packages/xonsh/conda.xsh
no change     /Users/xxxxxx/anaconda3/etc/profile.d/conda.csh
needs sudo    /Users/xxxxxx/.bash_profile
No action taken.
Operation failed.

我没有.bash_profile。我确实有一个/Users/xxxxxx/.profile,但是无论是否带有sudo,它都不能直接执行。

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

我也面临类似的问题,但是在采购conda.sh文件后,问题得以解决。你可以检查一下。

source /Users/xxxxxx/anaconda3/etc/profile.d/conda.sh