DLL加载失败(无法导入Tensorflow)

时间:2019-03-14 02:56:59

标签: python tensorflow

这是我第一次在堆栈溢出时提出问题,感谢您浏览我的问题!   当我尝试在Visual Studio Code中调试程序(用python编写)时,当我输入“ python。\ dnn_example.py”时,它不会输出结果,但会阻止此消息(白框和它表示“我更喜欢使用哪种软件打开文件):enter image description here

然后我看到了来自“问题”的消息:enter image description here 它显示为“无法导入tensorflow”。   我一直在努力解决问题,谢谢您的帮助!

1 个答案:

答案 0 :(得分:0)

似乎您尚未安装tensorflow。尝试使用conda install tensorflow使用conda进行安装,或者如果不使用conda,请使用pip install tensorflow使用pip进行安装。 如果要在GPU上运行tensorflow,请遵循this tutorial