文章目录
服务器配置
- 使用shell命令行查看linux服务器是32位还是64位,以便下载相应的版本,返回32表示32位,返回64表示64位
getconf LONG_BIT
# 64
下载
从anaconda镜像下载下载相对应的sh文件。
安装anaconda的sh文件
- 将sh文件上传到服务器
- 使用shell命令行安装anaconda
bash Anaconda3-5.3.0-Linux-x86_64.sh #第一次安装anaconda
bash Anaconda3-5.3.0-Linux-x86_64.sh -u #已经装过anaconda
- 一路按Enter键查看协议
- 输入yes默认安装
- 报错
PREFIX=/root/anaconda3
Anaconda3-5.3.0-Linux-x86_64.sh: line 317: bunzip2: command not found
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
- 安装bzip2即可解决
yum install -y bzip2
- 接下来完全默认安装即可
启动anaconda
- 必须重启服务器才能登录ipython
- 由于anaconda在linux下是安装在一个文件夹里/root/anaconda3 ,如果安装过程中出错问题,或者想更新另一个版本,删除anaconda也很方便,执行下面命令
rm -rf ~/anaconda3