根据自己电脑上的 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

相关文章:

  • 2021-10-12
  • 2022-02-09
  • 2021-11-16
  • 2021-10-13
  • 2021-10-21
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-20
  • 2021-05-23
  • 2021-12-05
  • 2021-09-27
  • 2022-12-23
  • 2021-09-02
  • 2021-06-11
相关资源
相似解决方案