spyder 无法加载张量流 [英] spyder cant load tensorflow

查看:80
本文介绍了spyder 无法加载张量流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在带有 GPU 的 ubuntu 16.04 中构建并安装了 tensorflow.在命令行中,我可以轻松激活 tensorflow 环境,但是当我尝试通过 spyder 运行代码时,它显示:没有名为 tensorflow.examples.tutorials.mnist 的模块"

I build and installed tensorflow in my ubuntu 16.04 with gpu. In command line I can easily activate tensorflow environment but while I try to run the code through spyder it show this : "No module named tensorflow.examples.tutorials.mnist"

如何使用 tensorflow 从 spyder 运行我的 python 代码?

how can I run my python code from spyder with tensorflow?

推荐答案

  1. 进入环境

  1. Enter the enviornment

源码激活tensorflow

安装 spyder

conda 安装 spyder

运行 spyder

spyder

`

这篇关于spyder 无法加载张量流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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