conda init gives me "no action taken"

I'm getting this while installing anaconda on ubuntu 19.04 Im getting this while installing anaconda on ubuntu 19.04


Solution 1:

While this does not try to fix this problem, rather helps as a workaround when I want to activate an env.

$ source ~/anaconda3/bin/activate <env_name>

Solution 2:

I had the same problem. Previously I had anaconda 2 but I removed to install anaconda 3. After installing anaconda 3 and using conda init I got the same error message, as I solved it. Enter your .bashrc:

gedit ~/.bashrc

Identify the following lines in the .bashrc file and delete them:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup = "$ ('/ home / spidey / anaconda3 / bin / conda' 'shell.bash' 
'hook' 2> / dev / null)"
if [$? -eq 0]; then
    eval "$ __ conda_setup"
else
    if [-f "/home/spidey/anaconda3/etc/profile.d/conda.sh"]; then
        . "/home/spidey/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH = "/ home / spidey / anaconda3 / bin: $ PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

Explanation:
Since previously you already had an anaconda installation, the conda init command did not modify anything because it detected that you had already made changes to the .bashrc file.