anaconda 中的 tensorflow 导入错误 [英] tensorflow import error in anaconda

查看:40
本文介绍了anaconda 中的 tensorflow 导入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照主网站中的说明在 anaconda 中安装了 tensorflow.但是import tensorflow"仅适用于 anaconda envs 中 tensorflow 文件夹中的 python.anaconda的python3.6没有导入tensorflow.

I installed tensorflow in anaconda following the instructions in main website.But 'import tensorflow' is only working for python that's in tensorflow folder in envs of anaconda. The python3.6 of anaconda is not importing tensorflow.

推荐答案

执行安装步骤,但将 3.5 或 35 替换为 3.6 或 36.对我有用.

Do the install steps but replace 3.5 or 35 with 3.6 or 36. Works for me.

conda create -n tensorflow python=3.6 
activate tensorflow
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.2.1-cp36-cp36m-win_amd64.whl 

参考:在 Windows 上安装 TensorFlow

这篇关于anaconda 中的 tensorflow 导入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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