【问题标题】:Installing Tensorflow on windows Anaconda2在 Windows Anaconda2 上安装 Tensorflow
【发布时间】:2017-04-13 05:13:58
【问题描述】:

我正在尝试在 Windows 64 位的 Ananconda2 上安装 tensorflow。我尝试了以下步骤:

conda create --name tensorflow python=3.5 

activate tensorflow 

conda install -c conda-forge tensorflow

Tensorflow 安装成功,我可以在 Anaconda 提示符中检查。 但是,当我打开我的 python2 Jupyter 笔记本并尝试以下操作时:

import tensorflow as tf

我收到一条错误消息,提示“未找到模块 tensorflow”。能否请你帮忙!

【问题讨论】:

  • 你在安装tensorflow时提到了python3,打开了一个python2 jupyter notebook。我认为这是问题
  • 是的,我知道这一点。我无法在 Python 2.7 上安装 tensorflow,我要工作的学术项目应该在 python2 笔记本上,但在 python3 上。
  • 尝试将内核从 pyhton 2 更改为 python 3 或 tensorflow 环境。如果你严格要使用 python 2,恐怕你必须为 python 2 安装 tensorflow。

标签: python windows tensorflow anaconda


【解决方案1】:

解决方案:-(注意:- 这肯定适用于所有人!!)

第 1 步:- conda 搜索 python

第 2 步:- conda install python=3.5.2

第 3 步:- pip install tensorflow

第 4 步:- 将 tensorflow 导入为 tf

完成!!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-02-06
    • 2017-08-21
    • 2016-08-19
    • 1970-01-01
    • 2016-04-19
    • 2017-04-14
    • 2018-09-11
    相关资源
    最近更新 更多