centOS6 下安装Anaconda3

linux下安装Anaconda3

0. 安装wget&bunzip2
yum -y install wget
yum install -y bzip2 
1. 下载Anaconda
 wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.3.0-Linux-x86_64.sh
2. bash执行.sh
bash Anaconda3-5.3.1-Linux-x86_64.sh
# 安装过程 
......
Do you accept the license terms? [yes|no]
Please answer 'yes' or 'no':'
>>> yes

Anaconda3 will now be installed into this location:
/root/anaconda3

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/root/anaconda3] >>> /soft/anaconda # 自定义安装路径
PREFIX=/soft/anaconda
installing: python-3.7.0-hc3d631a_0 ...
.........
3. 配置环境变量
# 打开文件
vi ~/.bashrc
# 行末添加
export PATH=/soft/anaconda/bin:$PATH 
# 生效配置
source ~/.bashrc 
4. 使用Anaconda搭建环境
# 安装环境
conda create -n py3 python=3.6 requests
# 激活环境
source activate py3
常用指令
# 列出所有环境
conda env list
# 删除环境
conda env remove -n [env_name]
  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值