tensorflow安装(CentOS)
来源:互联网 发布:新媒体矩阵是什么 编辑:程序博客网 时间:2024/05/18 16:56
>yum install python-pip python-dev python-virtualenv
>virtualenv --system-site-packages ~/tensorflow
>source ~/tensorflow/bin/activate -----开启virtualenv
$export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0rc0-cp27-none-linux_x86_64.whl
$pip install --upgrade $TF_BINARY_URL
注:如果出现<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)>异常,表示当前python版本对https支持有问题,暂时解决办法是上一步的https修改为http
测试
$python
>>>import tensorflow as tf
>>>hello = tf.constant('Hello, TensorFlow!')
>>>sess = tf.Session()
>>>print(sess.run(hello))
>>>a = tf.constant(10)
>>>b = tf.constant(32)
>>>print(sess.run(a + b))
$deactivate ------关闭virtualenv
----------------------------------------------
以上是以yum 的方式进行安装,这些我们就可以自己写python代码import tensorflow了,但是tensorflow的源码中有很多example,所以我们最好把tensorflow的源码下载下来
>mkdir works
>cd works
>git clone https://github.com/tensorflow/tensorflow --如果没有安装git,yum install git
>cd tensorflow
>git status
阅读全文
0 0
- tensorflow在centos安装
- tensorflow centos 安装
- centos 6安装tensorflow
- CentOS快速安装TensorFlow
- centos 安装TensorFlow
- centos系统安装TensorFlow
- MAC, Centos 安装tensorflow。
- centos安装TensorFlow
- tensorflow安装(CentOS)
- tensorflow(centos 6.4)安装
- CentOS 6.6 x64安装TensorFlow
- linux下安装TensorFlow(centos)
- Centos python36 安装tensorflow记录
- 从 Centos 安装到TensorFlow的安装
- tensorflow(centos 7.0 64)安装
- Tensorflow在centos上安装记录
- centos上tensorflow一键安装脚本
- ubuntu与centos安装tensorflow经验总结
- HDU 4405 Aeroplane chess
- PostgreSQL 学习笔记 快速入门攻略
- Python核心编程v2.0 第11章习题答案
- Netty之定时任务
- oracle中connect by...start with...的使用
- tensorflow安装(CentOS)
- 给初学者的RxJava2.0教程(四)
- null和undefined的区别
- sql语句
- python里指定时间调用函数
- hive之hwi
- Python3正则
- 【JAVA】PDFBOX解析PDF
- java.util.concurrent.locks.ReentrantLock重入锁源码解析