简体   繁体   English

ModuleNotFoundError:在 vscode 中没有名为“tensorflow”的模块

[英]ModuleNotFoundError: No module named 'tensorflow' in vscode

I make env conda, so in terminal python 'import tensorflow' not occuring error我制作了 env conda,所以在终端 python 'import tensorflow' 没有发生错误

but execute file, example test.py import tensorflow但执行文件,例如 test.py 导入 tensorflow

no module name tensorflow没有模块名称 tensorflow

terminal python find tensorflow but why execute test.py can not find tensorflow?终端python找到tensorflow但是为什么执行test.py找不到tensorflow?

in terminal, ok but file execute cannot find module在终端中,好的,但文件执行找不到模块

how can it occuring?????怎么会发生??????

1. Check whether the right environment you creat. 1.检查你创建的环境是否正确。 enter image description here在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM