没有合适的资源?快使用搜索试试~ 我知道了~
TensorFlow安装-Windows
4星 · 超过85%的资源 需积分: 32 51 下载量 32 浏览量
2017-04-24
17:25:07
上传
评论
收藏 3KB TXT 举报
温馨提示
试读
2页
TensorFlow安装-Windows
资源推荐
资源详情
资源评论
1.install
Before install tensorflow,install Anaconda3-4.3.0.1-Windows-x86_64.exe first
1)conda create -n tensorflow python=3.5,若失败->2,否则―>3
2)更新anaconda conda update anaconda
3)activate tensorflow,变成这样:(tensorflow)...>>
4)pip install tensorflow
版本pip install --upgrade --ignore-nstalled https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35 mwin_
amd64.whl
5)activate your Anaconda environment.
open Anaconda Navigator->find tensorflow->Left click open Terminal->C:\> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_amd64.whl
6)test:
A.open Anaconda Prompt->python->input follows:
import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
print('TensorFlow version: {0}'.format(tf.__version__))
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
output as B
B.test on PyCharm:
open pycharm->File->Settings->Project Interpreter->choose the python.exe in tensorflow->OK
create a file test.py,copy the code and run
output:
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "CountExtremelyRandomStats" device_type: "CPU"') for unknown op: CountExtremelyRandomStats
Before install tensorflow,install Anaconda3-4.3.0.1-Windows-x86_64.exe first
1)conda create -n tensorflow python=3.5,若失败->2,否则―>3
2)更新anaconda conda update anaconda
3)activate tensorflow,变成这样:(tensorflow)...>>
4)pip install tensorflow
版本pip install --upgrade --ignore-nstalled https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35 mwin_
amd64.whl
5)activate your Anaconda environment.
open Anaconda Navigator->find tensorflow->Left click open Terminal->C:\> pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_amd64.whl
6)test:
A.open Anaconda Prompt->python->input follows:
import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
print('TensorFlow version: {0}'.format(tf.__version__))
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
output as B
B.test on PyCharm:
open pycharm->File->Settings->Project Interpreter->choose the python.exe in tensorflow->OK
create a file test.py,copy the code and run
output:
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "CountExtremelyRandomStats" device_type: "CPU"') for unknown op: CountExtremelyRandomStats
资源评论
- qq_315479932017-04-25OK,activate tensorflow
- hummingbird30002017-04-30CUDA/CDNN 部分沒提到。
linolzhang
- 粉丝: 2130
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功