Mac下用conda安装tensorflow

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. 切换环境

 

猜你喜欢

转载自blog.csdn.net/Ahead_J/article/details/83001473