AutoDL 初始状态下只有root用户,miniconda 安装在root用户目录下
///
增加普通用户
root@autodl-container-1c0641804d-5bb7040c:~/Desktop# apt update
root@autodl-container-1c0641804d-5bb7040c:~/Desktop# apt install sudo
root@autodl-container-1c0641804d-5bb7040c:~/Desktop# adduser zhenglf
root@autodl-container-1c0641804d-5bb7040c:~/Desktop# usermod -aG sudo zhenglf
root@autodl-container-1c0641804d-5bb7040c:~/Desktop# su zhenglf
普通用户conda配置
zhenglf@autodl-container-b8974ea189-5aa9b74e:/root$ python
bash: python: command not found
zhenglf@autodl-container-b8974ea189-5aa9b74e:/root$
zhenglf@autodl-container-b8974ea189-5aa9b74e:/root$ conda
bash: conda: command not found
zhenglf@autodl-container-b8974ea189-5aa9b74e:/root$
zhenglf@autodl-container-b8974ea189-5aa9b74e:/root$ sudo /root/miniconda3/bin/conda init bash
no change /root/miniconda3/condabin/conda
no change /root/miniconda3/bin/conda
no change /root/miniconda3/bin/conda-env
no change /root/miniconda3/bin/activate
no change /root/miniconda3/bin/deactivate
no change /root/miniconda3/etc/profile.d/conda.sh
no change /root/miniconda3/etc/fish/conf.d/conda.fish
no change /root/miniconda3/shell/condabin/Conda.psm1
no change /root/miniconda3/she