一、安装
参考资料:
https://blog.csdn.net/weixin_49223002/article/details/123031334 Ubuntu安装anaconda3
https://blog.csdn.net/anniaxie/article/details/107198266 ubuntu16.04下Anaconda3的使用
二、使用
1,添加环境变量
在~/.bashrc中添加export PATH="/home/xx/anaconda3/bin:$PATH"
或者:
# >>> conda initialize >>>
# !! Contents within this block are managed by ‘conda init’ !!
__conda_setup=”$(‘/home/zhuxuekui/anaconda3/bin/conda’ ‘shell.bash’ ‘hook’ 2> /dev/null)”
if [ $? -eq 0 ]; then
eval “$__conda_setup”
else
if [ -f “/home/zhuxuekui/anaconda3/etc/profile.d/conda.sh” ]; then
. “/home/zhuxuekui/anaconda3/etc/profile.d/conda.sh”
else
export PATH=”/home/zhuxuekui/anaconda3/bin:$PATH”
fi
fi
unset __conda_setup
2,几个命令
conda create -n py38 python=3.8
conda env list
conda env remove -n py38
conda activate py38
conda deactivate
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/279840.html