conda 安装完后出现conda: command not found的问题
You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> no
You have chosen to not have conda modify your shell scripts at all.
To activate conda's base environment in your current shell session:
eval "$(/root/miniconda3/bin/conda shell.YOUR_SHELL_NAME hook)"
To install conda's shell functions for easier access, first activate, then:
conda init
Thank you for installing Miniconda3!
root@jhdqtwqatdkwlkgo-snow-69f899d9db-wd6g5:/data/coding# conda --version
bash: conda: command not found
找到root文件夹下的 .bachrc文件
export PATH=$PATH:/home/root/anaconda3/bin
把/home/root/anaconda3/bin这段地址改成conda文件夹里bin文件夹的路径
改完后运行 source ~/.bashrc
再运行conda --version
看conda是不是成功运行
root@jhdqtwqatdkwlkgo-snow-69f899d9db-wd6g5:/data/coding# source ~/.bashrc
root@jhdqtwqatdkwlkgo-snow-69f899d9db-wd6g5:/data/coding# conda --version
conda 24.4.0