tensflow安装

根据自己电脑上的 Python版本 选择安装2.7或者3

1、安装管理组件  

            sudo easy_install pip (3.8.1 以上)

     保险起见执行一下

          sudo easy_install --upgrade six
          sudo easy_install --upgrade pip

2、 安装开始

      python

       pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.1-py2-none-any.whl       

       或者 python3

       pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.1-py3-none-any.whl

3、进入环境测试

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

 

 

 4、问题 numpy 升级(低版本包报错)http://blog.csdn.NET/shi_weihappy/article/details/50938486

posted on 2017-05-25 17:08  不停地朝前走  阅读(1332)  评论(0编辑  收藏  举报

导航