在Windows Anaconda2上安装Tensorflow [英] Installing Tensorflow on windows Anaconda2

查看:76
本文介绍了在Windows Anaconda2上安装Tensorflow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to install tensorflow on Ananconda2 in windows 64 bit. I've tried the following steps:

conda create --name tensorflow python=3.5 

activate tensorflow 

conda install -c conda-forge tensorflow

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

Tensorflow got installed successfully and i could check that in Anaconda prompt. However, when I open my python2 Jupyter notebook and try with the following:

import tensorflow as tf

我收到一条错误消息,提示未找到模块张量流".能否请你帮忙!

I get an error says "module tensorflow is not found". Could you please help!

推荐答案

解决方案:-(注意:-这肯定对所有人都有效!)

Solution:- (Note:- This will surely work for all!!)

步骤1:-conda搜索python

Step 1:- conda search python

第2步:-康达安装python = 3.5.2

Step 2:- conda install python=3.5.2

步骤3:-pip安装tensorflow

Step 3:- pip install tensorflow

步骤4:-将tensorflow导入为tf

Step 4:- import tensorflow as tf

完成!

这篇关于在Windows Anaconda2上安装Tensorflow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆