1. 下载并安装 Anaconda。
2. 通过调用以下命令创建名为 tensorflow
的 conda 环境:
$ conda create -n tensorflow python=3.6
3. 通过发出以下命令激活 conda 环境:
$ source activate tensorflow
4. 发出以下格式的命令以在 conda 环境中安装 TensorFlow:
$ pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.4.0-py3-none- any.whl
5. 测试
6. 切换环境