如图,请问为什么可以在spyder中import tensorflow,但是在CMD中无法运行相同的脚本
有可能是这种情况:你的spyder 对应的python 和你cmd 里的缺省python 不是一个python看cmd里的python
where python
看spyder 的python