anaconda使用系列教程--9)miniconda

简介

文档地址:

https://docs.conda.io/en/latest/miniconda.html#

下载地址:

https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/

官网地址:

https://docs.conda.io/en/latest/miniconda.html

ubuntu18.04

在清华镜像源复制Miniconda3-py39_4.11.0-Linux-x86_64.sh链接地址:

https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/

使用wget下载

cd切换到想要安装的位置

使用bash命令安装

bash Miniconda3-py39_4.11.0-Linux-x86_64.sh

配置conda路径:

用vim 或者vi 打开 bashrc文件

vim ~/.bashrc

在文件最后加入 命令export PATH=$PATH:(你的安装路径)/bin,比如我的安装路径是/data/miniconda3 ;

export PATH=$PATH:/data/miniconda3/bin

保存bashrc文件;

source ~/.bashrc

输入conda -V试试,如果显示conda版本号,则表明安装成功!如果不成功,reboot重启下应该就ok了!

一般官网的源比较慢,建议配置国内源,这里配置的是清华源:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/

conda config --set show_channel_urls yes

如果需要pytorch,可以加上

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud//pytorch/

你可能感兴趣的:(python,python,深度学习,linux)