当前位置: 代码迷 >> 综合 >> win7+anaconda3.6安装tensorflow命名行
  详细解决方案

win7+anaconda3.6安装tensorflow命名行

热度:77   发布时间:2023-12-29 13:54:36.0
  1. 在 Anaconda Prompt 窗口输入:conda create -n tensorflow python=3.5
  2. 激活:activate tensorflow
  3. 安装CPU版本:pip install --upgrade --ignore-installed tensorflow
  4. 测试是否安装成功:

     import tensorflow as tf

     hello = tf.constant('Hello, TensorFlow!')

     sess = tf.Session()

     print(sess.run(hello))

  相关解决方案