zoukankan      html  css  js  c++  java
  • windows环境安装tensorflow

    本机环境win7,想要安装tensorflow,试了好久,才装好。官网才是王道。

    注意:目前tensorflow 在 windows 环境中仅支持 python 3.5. *64,。所以python版本一定要下对。

    我采用的方法是

    Installing with native pip,使用 CPU 版本。

    下面是分享的python 链接 http://pan.baidu.com/s/1qXGlYdI

    后面的命令就参照官网https://www.tensorflow.org/install/install_windows

    C:> pip3 install --upgrade tensorflow

    装好以后进行测试

    $ python

    Enter the following short program inside the python interactive shell:

     
    >>> import tensorflow as tf
    >>> hello = tf.constant('Hello, TensorFlow!')
    >>> sess = tf.Session()
    >>> print(sess.run(hello))

    If the system outputs the following, then you are ready to begin writing TensorFlow programs:

     
    Hello, TensorFlow!

    配置PyCharm

    习惯了使用JetBrain系列开发工具,于是选用PyCharm来开发,配置如下: 
    新建工程后在Setting–Project Interpreter选择tensorflow下的Python解释器,例如我的解释器位置: 
    这里写图片描述 
    等部署完后便可跑个HelloWorld了

     2 配置文件编码

  • 相关阅读:
    深入理解Java内存模型(JMM)
    Java基础知识①
    Java自旋锁的几种实现
    ConcurrentHashMap的CAS操作
    Java集合对比总结
    python模块--os模块
    python模块--random
    Datafactory 学习笔记
    Datafactory 实际使用案例
    Oracle三种排名函数使用
  • 原文地址:https://www.cnblogs.com/zhaopengcheng/p/7259968.html
Copyright © 2011-2022 走看看