1. 下载
https://www.continuum.io/downloads
选择对应版本,linux,python2.7
485M 建议用迅雷下载
2. 运行安装命令
bash Anaconda2-4.4.0-Linux-x86_64.sh
一路回车(Enter), ctrl+C 跳过licence的说明,直接 yes, 确定安装默认位置 (/home/lcy/anaconda2)
Do you want to add anaconda path to bashrc
yes
安装完 source ~/.bashrc
重启终端
3. 运行conda
cd ~/anaconda2/bin
conda
4. 安装pytorch
http://pytorch.org/
conda install pytorch torchvision cuda80 -c soumith
>>> import torch
>>> x=torch.randn(20,30)
>>> x=x.cuda()
5. conda安装tensorflow
参考: http://blog.youkuaiyun.com/nxcxl88/article/details/52704877
cd ~/anaconda3/bin
conda create -n tensorflow
source activate tensorflow
export TF=[tf_cp_gpu_linux.whl](https://www.tensorflow.org/install/install_linux#the_url_of_the_tensorflow_python_package)
pip install --ignore-installed --upgrade $TF
python
import tensorflow