Use conda init
As pointed out in another answer , manually adding Conda to $PATH no longer recommended with v4.4.0 (see release notes ). In addition, starting with Conda v4.6, new functionality has been introduced to control shell initialization using the conda init command. Therefore, the updated recommendation is to run
./anaconda3/bin/conda init
First check the changes he makes. If you do not already have a section managed by Conda in the shell startup command file (for example, .bashrc ), then this should look like inserting some new lines directly. In this case, start the launch.
./anaconda3/bin/conda init -vv
If this is not such a simple insertion, I would recommend that you first clear all previous Conda sections from $PATH and the corresponding shell initialization files (e.g. bashrc ), and then run the commands as described above.
You must run a new shell or initialization file (for example, source.bashrc ) for the changes to take effect.
Potential automatic cleaning
Note that in Conda v4.6.9, the --reverse flag was also introduced to remove changes from conda init . However, I did not check this, and running conda init --reverse --dry-run -vv on my system shows that it will not change anything, that is, it does not look reliable.
merv Apr 05 '19 at 0:10 2019-04-05 00:10
source share