ubuntu16.04安装anaconda tensorflow pytorch keras配置深度学习环境

在清华镜像网上下载最新的anaconda。
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
在这里插入图片描述
选择了Anaconda3-5.3.1-Linux-x86_64。下载后放到虚拟机的目录下,执行:

bash Anaconda3-5.3.1-Linux-x86_64.sh

在这里插入图片描述
按下enter键,然后一直按enter,输入yes。
在这里插入图片描述
会提示你是否将路径写入bashrc里,选择yes.
在这里插入图片描述
最后会提示你是否安装VScode。根据自己的需求去选择。

在这里插入图片描述
之后需要

source ~/.bashrc

conda创建python3.6的环境,名字叫tensorflow。

conda create -n tensorflow python=3.6 

进入环境。

source activate tensorflow

安装tensorflow-cpu。根据自己需求选择版本。

conda install -c conda-forge tensorflow=1.8.0

安装keras。

conda install -c conda-forge keras=2.1.5

安装nltk。

conda install -c anaconda nltk=3.2.5

安装pillow。

conda install -c anaconda pillow=5.0.0

安装opencv。

conda install -c conda-forge opencv=3.4.1

安装pytorch。

conda install pytorch=0.4.1 -c pytorch
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值