TensorFlow学习笔记(一):TensorFlow在Windows/Mac/Ubuntu下安装

TensorFlow安装

Windows下的安装

1.  Python(仅支持3.5.X)下载:

https://www.python.org/downloads/release/python-352/

2.  Anaconda下载

https://repo.continuum.io/archive/index.html  (Anaconda3 4.2.0)

3.  Anaconda prompt下输入

C:>conda create -n tensorflow

4.  激活Anaconda环境

activate tensorflow

5.  安装TensorFlow

CPU: pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl
GPU: pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.1.0-cp35-cp35m-win_amd64.whl



本人是Windows10,用这种方法安装出现错误:

(1)Anaconda闪退

(2)TensorFlow测试程序在Anaconda中出错,但是用cmd运行成功

最终解决办法:安装最新版的Anaconda, 改成支持python3.5,具体看下链接,特别简单!!!

http://blog.csdn.net/u012560212/article/details/57409311

Mac下的安装

1.  Python(支持2.73.43.53.6)下载:

https://www.python.org/downloads/

2.  Anaconda下载

https://repo.continuum.io/archive/index.html  (如果python3.6选最新版本的Anaconda)

3.  在自带终端下(shell)下输入

$ conda create -n tensorflow

4.  激活Anaconda环境

$ source activate tensorflow
 (tensorflow)$  # Your prompt should change

5.  安装TensorFlow

(tensorflow)$ pip install --ignore-installed --upgrade $TF_PYTHON_URL
 
python 2.7
cpu: https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.1.0-py2-none-any.whl
gpu: https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow_gpu-1.1.0-py2-none-any.whl
python 3.4 3.5 3.6
cpu: https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.1.0-py3-none-any.whl
gpu: https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow_gpu-1.1.0-py3-none-any.whl

 

Ubuntu下的安装

1.  Python(支持2.73.43.53.6)下载:

https://www.python.org/downloads/

2.  Anaconda下载

https://repo.continuum.io/archive/index.html  (如果python3.6选最新版本的Anaconda)

3.  在自带终端下(shell)下输入

$ conda create -n tensorflow

4.  激活Anaconda环境

$ source activate tensorflow
 (tensorflow)$  # Your prompt should change

5.  安装TensorFlow

(tensorflow)$ pip install --ignore-installed --upgrade $TF_PYTHON_URL
 
python 2.7
cpu: https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.1.0-py2-none-any.whl
gpu: https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.1.0-py2-none-any.whl
python 3.4 3.5 3.6
cpu: https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.1.0-py3-none-any.whl
gpu: https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.1.0-py3-none-any.whl

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值