Cloud server (centos) conda command not found

Check the installation path
In the root directory, use the ls command to view the files and find that there is anaconda3, indicating that the installation path of our anaconda3 is: ~/anaconda3/bin The
core is to find the installation path

sudo vim /etc/profile

# 在最后一行加上: 

export PATH=$PATH:~/anaconda3/bin
sudo vim ~/.bashrc

# 在最后一行加上: 

export PATH=$PATH:~/anaconda3/bin

Activate the environment

source ~/.bashrc

view version

conda -V

example

Guess you like

Origin blog.csdn.net/Bat_Reality/article/details/120493253