Ubuntu23.04 anaconda安装+国内源

发布时间 2023-07-07 19:27:25作者: Alan-Blog

anaconda安装

下载

官网

https://repo.anaconda.com/archive/

国内镜像

https://mirrors.bfsu.edu.cn/anaconda/archive/
https://mirrors.xjtu.edu.cn/anaconda/archive/
https://mirror.bjtu.edu.cn/anaconda/archive/
https://mirrors.hit.edu.cn/anaconda/archive/
https://mirrors.aliyun.com/anac

安装

sudo sh Anaconda-xxxx.sh (自己下载的版本.sh)
一路yes 中途询问是否安装到其他路径时 输入一个空文件夹路径即可

添加环境变量

用户环境变量


sudo vim  ~/.bashrc #如果用的zsh 则为.zshrc

# 下面的添加到bashrc文件的末尾添加

# anaconda环境
export PATH=/...(安装路径)/anaconda3/bin:$PATH

root用户环境变量

sudo vim /etc/profile

# 下面的添加到profile文件的末尾添加

# anaconda环境
export PATH=/...(安装路径)/anaconda3/bin:$PATH

添加国内源

https://zhuanlan.zhihu.com/p/584580420