配置:
centos7配置双核2G云虚拟主机,内核3.10
安装:
1.清华anaconda镜像网站找到下载链接
2.选择版本
Anaconda3-2023.03-1-Linux-x86_64.sh
3.拷贝下载链接
4.ssh登录后
wget -U NoSuchBrowser/1.0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2023.03-1-Linux-x86_64.sh
5. bash AnacondaXXX.sh,一路yes就行
6.添加环境变量
vi /etc/profile 添加
export ANACONDA=/root/anaconda3
export PATH=$PATH:$ANACONDA/bin
source /etc/profile
7.conda info 验证成功
[root@VM-0-14-centos ~]# conda info
active environment : None
user config file : /root/.condarc
populated config files : /root/.condarc
conda version : 23.7.4
conda-build version : 3.26.1
python version : 3.10.13.final.0
virtual packages : __archspec=1=x86_64
__glibc=2.17=0
__linux=3.10.0=0
__unix=0=0
base environment : /root/anaconda3 (writable)
conda av data dir : /root/anaconda3/etc/conda
conda av metadata url : None
channel URLs : http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /root/anaconda3/pkgs
/root/.conda/pkgs
envs directories : /root/anaconda3/envs
/root/.conda/envs
platform : linux-64
user-agent : conda/23.7.4 requests/2.31.0 CPython/3.10.13 Linux/3.10.0-1160.95.1.el7.x86_64 centos/7.9.2009 glibc/2.17 aau/0.4.2 c/iXclz255D0hJRlROom3FoQ s/wsBzMTauW8KERxYvoRCZ_A e/j9J4nek-8CAKXSJHdIPWOw
UID:GID : 0:0
netrc file : None
offline mode : False
8.Tips:
1.为什么不选择7月版本,因为会卡y解包,能用的只有23.03-1的,我测试了好多包了。安装了6次不同版本。
2.wget 为什么有-U,因为清华源会屏蔽不带包头链接,现实403错误.