MacOS安装anaconda以及Tensorflow步骤
最好参考官网上的文档,锻炼自己的动手能力。
一、安装anaconda(以python2.7为例)
1、从官网上复制对应版本连接
https://repo.continuum.io/archive/Anaconda2-5.0.1-MacOSX-x86_64.sh
2、打开终端下载
curl -O https://repo.continuum.io/archive/Anaconda2-5.0.1-MacOSX-x86_64.sh
3、安装
bash ~/Downloads/Anaconda2-5.0.1-MacOSX-x86_64.sh
4、之后需要几个确认安装的步骤,简易参照官网提示(不要怕麻烦)
5、确认安装成功
conda list
终端中执行上述命令会显示安装内容
####################
二、安装Tensorflow(以python2.7以及cup版本为例)
1、打开终端输入
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.3.0-py2-none-any.whl
2、输入python
import tensorflow as tf
若没有报错基本上安装完成