导入 tensorflow 时 Python 崩溃 [英] Python crashes when I import tensorflow

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

问题描述

当我尝试导入 tensorflow 时,我的 python 崩溃了.我尝试卸载它并重新安装它,但它仍然无法正常工作.这是我尝试导入时的命令提示符图片.

When I try to import tensorflow my python crashes. I tried uninstalling it and installing it again, but It isn't still working. Here is a picture of the command prompt when I try to import it.

推荐答案

我不太确定这里的错误是什么.

I'm not too sure what the error is here.

  1. 尝试pip list查看所有包

如果没有看到 tensorflow 那么只需 pip install tensorflow

if no tensorflow seen then just pip install tensorflow

  1. print dir(tensorflow)查看函数

您似乎没有执行任何操作,只是导入了模块.

It seems you aren't executing anything but just importing the module.

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

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