为什么Spyder无法导入Tensorflow [英] Why spyder can't import tensorflow

查看:543
本文介绍了为什么Spyder无法导入Tensorflow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows中使用anaconda安装了tensorflow,但是我无法在spyder IDE中导入tensorflow吗?

I have installed tensorflow with anaconda in Windows, but I can't import tensorflow in spyder IDE?

推荐答案

Spyder无法导入Tensorflow的原因是Anaconda不在同一环境中存储tensorflow软件包.

The reason Spyder is unable to import Tensorflow is that Anaconda does not store the tensorflow package in the same environment.

一种解决方案是在Anaconda中创建一个专门用于TensorFlow的新独立环境,并在其中包含Python和自己的Spyder,然后将tensorflow安装到该环境中

One solution is to create a new separate environment in Anaconda dedicated to TensorFlow and containing Python with its own Spyder and then install tensorflow into that environment

这篇关于为什么Spyder无法导入Tensorflow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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