安装TensorFlow教程
来源:互联网 发布:psd免费源码社区 编辑:程序博客网 时间:2024/06/05 11:52
安装TensorFlow教程
参考链接:Ubuntu自己目录安装Tensorflow
安装环境:64位Ubuntu系统 + Python 2.7
一、安装步骤:
1.安装Anaconda
2.创建一个conda环境,命名为TensorFlow
$ conda create -n tensorflow
3.用以下命令进入conda环境
$ source activate tensorflow(tensorflow)$ #进入TensorFlow后的显示符
4.安装tensorflow版本
#cuda 8.0(tensorflow)$ pip install --ignore-installed --upgrade \https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.0.0-cp27-none-linux_x86_64.whl#cuda 7.5(tensorflow)$ pip install --ignore-installed --upgrade \https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl
5.查看cuda版本
$ nvcc -V
二、验证安装是否成功
$ python>>> import tensorflow as tf>>> hello = tf.constant('Hello, TensorFlow!')>>> sess = tf.Session()>>> print(sess.run(hello))
打印结果:
Hello, TensorFlow!
注意:每次使用先激活,最后退出。
$ source activate tensorflow #激活$ source deactivate #退出
1 0
- TensorFlow 安装教程
- Tensorflow+Anaconda安装教程
- tensorflow mac 安装教程
- 安装TensorFlow教程
- tensorflow安装教程
- TensorFlow安装教程
- Tensorflow安装教程
- TensorFlow安装入门图文教程
- Windows下安装Tensorflow教程
- Ubuntu16.04安装TensorFlow教程
- Windows安装TensorFlow详细教程
- Tensorflow安装教程(Linux+Anaconda2)
- Tensorflow教程--新手入门笔记--安装
- Anaconda安装TensorFlow的教程
- 记下anaconda安装tensorflow教程
- Windows下安装TensorFlow教程
- Jetson-TX2安装tensorflow教程
- TensorFlow简要教程系列(一)Mac安装TensorFlow
- windows下安装python3.5第三方库
- android知识点
- Android中加入依赖库点击运行后报出,com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- hibernate框架自动创建数据库表格
- linux下socket通信,server和client简单例子
- 安装TensorFlow教程
- 数据库连接驱动
- 【CDOJ】渐变字符串
- C#126课的主要内容
- React+Redux 打造 “NEWS EARLY” 单页应用 一个项目理解最前沿技术栈真谛
- 翻转链表
- Activity的四种启动模式
- c3p0连接池配置和Dao使用JdbcTemplate模板
- 基础练习 01字串