linux下安装TensorFlow(centos)
来源:互联网 发布:法国大餐 知乎 编辑:程序博客网 时间:2024/05/24 08:34
一、python安装
centos自带python2.7.5,这一步可以省略掉。
二、python-pip
pip--python index package,累世linux的yum,安装管理python软件包用的。
yum install python-pip python-devel
三、安装tensorflow
安装基于linux和python2.7的tensorflow 0.9
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl
其他操作系统版本可以参照下表:
# Ubuntu/Linux 64-bit, CPU only, Python 2.7 export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below. export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl# Mac OS X, CPU only, Python 2.7: export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0-py2-none-any.whl# Ubuntu/Linux 64-bit, CPU only, Python 3.4 export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp34-cp34m-linux_x86_64.whl# Ubuntu/Linux 64-bit, GPU enabled, Python 3.4# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below. export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp34-cp34m-linux_x86_64.whl# Ubuntu/Linux 64-bit, CPU only, Python 3.5 export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp35-cp35m-linux_x86_64.whl# Ubuntu/Linux 64-bit, GPU enabled, Python 3.5# Requires CUDA toolkit 7.5 and CuDNN v4. For other versions, see "Install from sources" below. export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp35-cp35m-linux_x86_64.whl# Mac OS X, CPU only, Python 3.4 or 3.5: export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0-py3-none-any.whl
四、测试安装是否成功
编写python脚本 test.py
import tensorflow as tfhello = tf.constant('Hello,TensorFlow!')sess = tf.Session()print(sess.run(hello))a = tf.constant(10)b = tf.constant(32)print(sess.run(a + b))
运行 python test.py结果如下:
大功告成。
阅读全文
0 0
- linux下安装TensorFlow(centos)
- Linux下安装tensorflow
- linux下安装tensorflow
- linux下tensorflow安装
- Linux下安装tensorflow库
- Linux服务器下安装TensorFlow
- tensorflow在centos安装
- tensorflow centos 安装
- centos 6安装tensorflow
- CentOS快速安装TensorFlow
- centos 安装TensorFlow
- centos系统安装TensorFlow
- MAC, Centos 安装tensorflow。
- centos安装TensorFlow
- tensorflow安装(CentOS)
- 【数据平台】Centos下仅CPU安装TensorFlow
- TensorFlow-gpu 在 CentOS 7 下的完全安装手册
- linux(centos)下安装mplayer
- 洛谷p1970花匠
- The type List is not generic; it cannot be parameterized with arguments<T>
- mysql权限
- MySQL存储过程 事务transaction
- List,Set,Map
- linux下安装TensorFlow(centos)
- Windows搭建Ldap服务器
- jsday07补充二(checkbox 全选 dom中首字母 大小写转化 dom实例思路 )
- linux转码utf-8
- 串口通信数据格式与解析
- 【年中总结】——Never lose hope ,Never give up
- 最近在进行web前端学习
- Java 提高(4)----- 异常 Logger
- 利用SSE计算向量点乘simd_dot